• 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: Dynamic values in admin email subject

Dynamic values in admin email subject 10 years 1 month ago #30696

  • andras4
  • andras4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
I'm trying to adjust the admin email subject based on a drop-down selection using the code below:


if($_POST[0] == 'one')
$adminEmail = '{some:value}';


if($_POST[0] == 'two')
$adminEmail = '{someother:value}';


Instead of getting the values in the subject, I'm getting emails with the subject {some:value} and {someother:value}. Can someone help me figure out how to fix the code?

Thanks!
The administrator has disabled public write access.

Dynamic values in admin email subject 10 years 1 month ago #30697

  • andras4
  • andras4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
I'm sorry, the code I'm trying to use is:

if($_POST['form']['drop-down'][0] == 'one')
  $adminEmail['subject'] = '{some:value}';
 
 
if($_POST['form']['drop-down'][0] == 'two')
  $adminEmail['subject'] = '{someother:value}';
Last Edit: 10 years 1 month ago by andras4.
The administrator has disabled public write access.

Dynamic values in admin email subject 10 years 1 month ago #30715

  • andras4
  • andras4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
This is the response I got from RSJoomla, in case anybody needs this in the future:


Using field placeholders within the scripting area will no longer have these replaced. Instead, you can try using (according to your fields):
$adminEmail['subject'] = $_POST['form']['myExactFieldNameHere'];
Last Edit: 10 years 1 month ago by andras4.
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!