Jump to content


This topic is now archived and is closed to further replies.


mail() headers

Recommended Posts

The following will only mail if $headers isn't included in the function:

$headers = "MIME-Version: 1.0\nContent-type: text/plain; charset=us-ascii\nFrom: site.com <$no_reply>\nReply-To: $no_reply";
$message = "You recently requested to join the site.com mailing list. To verify that you would like to join, please click the following link:\nhttp://www.site.com/mailinglist_verify.html?email=$email&amp;id=$uniqid\n\nIf you do not see a link above, copy and paste the web address to your web browser.\n\nIf you do not wish to join the site.com mailing list, please ignore this email.";
mail($email, 'site.com Mailing List Verification', $message, $headers);

Any explanations?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.