• 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: Script to change admin email won't work

Script to change admin email won't work 11 years 2 weeks ago #27338

  • jgarcia9
  • jgarcia9's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
Hi,
I'm using the following to change the admin recipient. But it wont change the "To:" email variable and keeps sending the email to the main admin.
if($_POST['form']['ReqType1'] == true){
$adminEmail['to'] = 'admin2@domain.com';
$adminEmail['from'] = ''; 
}
I also try using the {if} on the "To:" field but it won't let me. It will only work on the actual html body.
The administrator has disabled public write access.

Script to change admin email won't work 10 years 11 months ago #27601

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
if that "ReqType1" is an array (dropdown) the correct syntax should be
if($_POST['form']['ReqType1'][0] == 'true'){
$adminEmail['to'] = 'admin2@domain.com';
$adminEmail['from'] = ''; 
}
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 10 years 11 months ago by cosmin.cristea.
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!