• 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: how to include values in the User Email

how to include values in the User Email 4 years 10 months ago #40218

  • rgouyon
  • rgouyon's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Thank you received: 1
Hello

I have a script called after my form has been processed and in this script I calculate a value and I want this value to be in the email sent to the user.

I have a seen that I can use placeholder so my question is is it possible to create user placeodler in my PHP code and put inside the value I have calculated and the use it after

Or is there a more simple solution
The administrator has disabled public write access.

how to include values in the User Email 4 years 10 months ago #40221

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 246
  • Thank you received: 64
I think that putting your script in the 'after form process' means the emails have already been sent. I have been working on something similar with dates and membership numbers which i put in the 'on form process' section.
If you want to include the result of your calculation in an email then create a hidden field 'result' and assign the result to that then use the {result:value} placeholder. So something like:
$a + $b = $result;
$_POST_['form']['result'] = $result;
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
Last Edit: 4 years 10 months ago by iceferret.
The administrator has disabled public write access.
The following user(s) said Thank You: davidjacob317

how to include values in the User Email 4 years 10 months ago #40223

  • rgouyon
  • rgouyon's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Thank you received: 1
I have tried your solution and it seems to work.
Thank you for your help
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!