This topic is locked

Add a field to email body

12/29/2005 3:44:10 PM
PHPRunner General questions
H
HurricanHollow author

Hi Sergey,
Thank you for the the new PHPRunner version,
I have been trying for a few days (Actually Longer) and cannot seem to get this right. I need to add a field to this email body (Message)... The field name is count - Can you help?
mail( $_POST["value".array_search("MgrEmail",$fieldlist)],

"Showcase Entry Form Confirmation",

"Thank you for your application, your RECORD NUMBER is (count). \n Submission of this entry form is not a guarantee of participation in the tournament. You will be notified of your status in the tournament via email.", "From: ShowCaseEntry@MyWebSite.com ");
Also would be nice to hardcode a CC: email address as well if you have time.
Best Regards

Sergey Kornilov admin 12/30/2005

Hi,
here is the code snippet you can use. Please see my changes in bold.

mail( $_POST["value".array_search("MgrEmail",$fieldlist)],

"Showcase Entry Form Confirmation",

"Thank you for your application, your RECORD NUMBER is ".$_POST["value".array_search("count",$fieldlist)].". \n Submission of this entry form is not a guarantee of participation in the tournament. You will be notified of your status in the tournament via email.",

"From: ShowCaseEntry@MyWebSite.com\nCc: admin@MyWebSite.com");


Also please check out Events feture of new PHPRunner version. It will allow you to send email notifications without modifying generated PHP files.