Forums

Changing the from name on email

Sigal 16 Feb, 2013
Ok, one last question.

I want the 'from email' to be the Full name captured on the form.

After looking at posts on the forum I added this code on the Others tab-Before Emails code:
<?php
$form->data['from_name'] = "{$form->data['fullname']}";
?>


When I get the email, the email from says admin. It should say Sigal Zahavi.

Why is that?

Thanks
GreyHead 16 Feb, 2013
Hi Sigal,

Please see this FAQ

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.

Bob
This topic is locked and no more replies can be posted.