• 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: Conditional Email address based on dropdown value

Conditional Email address based on dropdown value 11 years 6 months ago #25529

I was just wondering if someone was able to get a php script to work?

if($_POST[form][name_of_drop_down][0] == 'Sample value here')
$userEmail[to] = 'email @ domain.com';

This is provided by RSForm, www.rsjoomla.com/support/documentation/v...p-email-scripts.html, but I cant seem to get it to work. I want to use it to have a different admin e-mailaddress based on the selection(value) from a dropdown box.

My script:

if($_POST[form][the name of my dropdown field][0] == 'the name of the value')
$adminEmail[to] = 'additional @ email.com';

(NOTE: I had to remove the ' ' between the [] otherwise this would not show. I also used space for the emailaddress)

They do not mention if you need to put some value in the admin to: field so I am guessing the script will override the value in the to: field.

Thank you for your idea / reply.
Last Edit: 11 years 6 months ago by joeri1977.
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!