mail() return path
Posted: Mon Jun 02, 2008 10:41 am
I am using the code below to set headers for e-mail sent using mail(); Some of the e-mail clients do not pick up a Return-path. Instead when the user hits "Reply" in their e-mail client it loads nobody@host.sitename.com. Also could setting the priority of the message to high effect a users spam program in blocking out my message?
Code: Select all
$head = "From: support@sitename.com <support@sitename.com>\n" .
"Reply-to: support@sitename.com <support@sitename.com>\n" .
"Return-path: support@sitename.com <support@sitename.com>\n" .
"X-Priority: 1 (High)\n" .
"X-Mailer: PHP/" . phpversion() . "\n" .
"MIME-Version: 1.0\n" .
"Content-Type: multipart/mixed; boundary=\"$bound\"\n\n";