Forums

Remaining questions for generating Emails

HerKle 10 Feb, 2012
Just viewed all videos concerning this, but some questions remain:

1. Is it possible to have to field names in "dynamic from", eg. field_firstname field_lastname
2. Is it possible to merge dynamic field content with static content, eg. in "dynamic subject": field_firstname has registered
GreyHead 10 Feb, 2012
Hi HerKle,

Yes but not directly in the Dynamic boxes. Instead use a Custom Code action before the Email action to build whatever value you want and put it into the $form->data array. You can then use the new input name in the Dynamic Box. For example:
<?php
$form->data['full_name'] = $form->data['first_name'].' '.$form->data['last_name'];
?>


You could also use my Email [GH} action which does supprt the 'curly bracket' syntax in most inputs (though not the From Name I think).

Bob

PS I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.
HerKle 10 Feb, 2012
Thanks for your advice. I followed it and the personalized e-mails look great now.
This topic is locked and no more replies can be posted.