Forums

Email [GH] . PHP in to and cc etc?

NickOg 13 Jun, 2012
Hi Bob,

Your Email[GH] works a treat. I am not quite sure whether to post this here or on your web site. Is there some way that I can change or set the To & CC fields with code? I tried adding some php directly in the 'To' field but that won't work. I see that one can use curly brackets but I can't extract the email addresses that I need until I get into the code in the mail template.

Regards

Nick
GreyHead 14 Jun, 2012
Hi Nick,

Only by using a Custom Code action before the Email [GH] action to add values to a $form->data variable. Whatever data you are using should be available there.

Bob
NickOg 14 Jun, 2012
Thanks Bob - I will give it a shot

Nick
NickOg 25 Jun, 2012
Just the job - works a treat.
Thanks
This topic is locked and no more replies can be posted.