• 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: send email to admin based on selected option

send email to admin based on selected option 2 years 1 month ago #42550

Hi,

Send email to admin based on country selected options. I have two countries and as per select option email received respective email id.

Best regards,
Pradip
The administrator has disabled public write access.

send email to admin based on selected option 2 years 1 month ago #42551

  • dragos
  • dragos's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 630
  • Thank you received: 114
Hello,

You can take a look at this article.
The administrator has disabled public write access.

send email to admin based on selected option 2 years 1 month ago #42573

  • RPPEO
  • RPPEO's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 68
  • Thank you received: 6
On the PHP Email Scripts you can do something like this:
if($_POST[0] == 'option1')
$adminEmail = ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';

if($_POST[0] == 'option2')
$adminEmail = ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';

if($_POST[0] == 'option3')
$adminEmail = ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it , This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';

select-field-name is the name of the dropdown or checkbox group
optionX represents the options for the field above.
The administrator has disabled public write access.

send email to admin based on selected option 6 months 3 weeks ago #43675

  • dorothy8
  • dorothy8's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi, I have the same issue - I added the PHP email script, but what do I put in the Admin email To field in the form? It is a mandatory field.
The administrator has disabled public write access.

send email to admin based on selected option 6 months 3 weeks ago #43676

  • dragos
  • dragos's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 630
  • Thank you received: 114
You can simply clear this field, leave it empty.
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!