By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,526 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,526 IT Pros & Developers. It's quick & easy.

Formatting mail() headers "prettier"

P: n/a
Hello all,

Given the following code:

$FormSubmittedUserData = "John Doe <jd**@somedomain.yuk>";

$to = 'm******@emaildomain.nuts';
$subject = 'This is my subject';
$message = 'This is my email message.';
$headers = "From: $Email\r\nReply-To: $Email\r\n";

mail($to, $subject, $message, $headers);

I only get the email address in the recipient inbox From: or Sender:
columns.

I am trying to provide the mail() function with the properly formatted
headers to get an outcome of "FirstName LastName" appearing in
recipient's Sender: or From: column in their inbox.

Any help from anyone who has tackled this one before would be greatly
appreciated.

Thanks all,

Gene Kelley
www.bizflowdesigns.com

Sep 21 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.