• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: email to admin and/or user depending on checkbox

email to admin and/or user depending on checkbox 11 years 6 months ago #25455

Hi there,

I would like to know if it is possible to send an email to both user and admin or just admin depending on a checkbox on the form.

I have two options on my form for getting a gift certificate.

1. User fills in complete form and checkes the checkbox pick up and pay.
(now the admin has to recieve a mail to make the certificate)

2. User fills in complete form and checkes the checkbox sent by post.
(now the user should receive a mail with an invoice for the amount filled in in the form
and the admin should recieve a mail with the information that the gift certificate should be sent by mail after receiving the payment.

I would like to achieve this in just one form if it's possible.

Thanx in advance for your time.

Harm Veenstra
The Netherlands.
The administrator has disabled public write access.

email to admin and/or user depending on checkbox 11 years 6 months ago #25471

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can create and use only one form for such scenario(but it will require some basic PHP knowledge).

There are two basic generated emails(besides the "Additional Emails" which you can have as many as you wish) that can be sent when the form is submitted: the User and Admin emails. The following article explains these in a more detailed way:

www.rsjoomla.com/support/documentation/v...onfigure-emails.html

I would recommend using a radio group selection instead of a checkbox, this way users can only select one of the radio options.

Next thing would be to clear the TO and FROM fields of your User Email if one of the radio options is checked(this way only the Admin email will send) and to change the message from the Admin Email when the other selection is made.

RSForm!Pro has a specialized area in which you can control these, the PHP Email scripting area(various examples are explained):

www.rsjoomla.com/support/documentation/v...p-email-scripts.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: flashveen

email to admin and/or user depending on checkbox 11 years 6 months ago #25482

Thanks for the tips. The examples are not working for me.

So i had to change it like someone on the internet suggested.

Now I have a different problem.

The script below works fine If i get rid of the last bit. {naamschenker:value}

if($_POST == 'Afhalen')
$adminEmail=' This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';
$adminEmail='Kadobon klaarmaken en versturen naar: '{naamschenker:value};

What am i doing wrong.

Thanks
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!