• 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: User Email script

User Email script 11 years 7 months ago #25464

  • w2kd
  • w2kd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 1
I'm trying to follow the guidance in this doco for the user email

I'm trying to replace string in the user email with a download links based on the radio selection of field "Download" but it not working. The code below should just replace it with text to prove it working but that not working either.

Have I got the syntax correct for the UserMail

$modUserEmailText = $form->UserEmailText;
$modUserEmailText = str_replace('{Download:value}','replacement text',$modAdminEmailText);
$userEmail) = $modUserEmailText ;
$userEmail) = str_replace($placeholders, $values, $userEmail);
The administrator has disabled public write access.

User Email script 11 years 7 months ago #25474

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

Note that there are three set of variables and scripting areas for the generated RSForm!Pro emails(User Email, Admin Email and Additional Emails).

From the code you have provided, on the second line notice that you are trying to make a replacement in the "$modAdminEmailText", it should be "$modUserEmailText" instead.

You can try using a similar to the following example within the scripting area for the "User Email", this implies you have the "{Download:value}" placeholder added in the body of User Email message:
$modUserEmailText = $form->UserEmailText;
 
$modUserEmailText = str_replace('{Download:value}','replacement text',$modUserEmailText);
 
$userEmail['text'] = $modUserEmailText;
$userEmail['text'] = str_replace($placeholders, $values, $userEmail['text']);
This is not official customer support. To receive your support, submit a support ticket here.
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!