Jump to content

mail() headers


johnnyk

Recommended Posts

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

[code]
$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);
[/code]

Any explanations?
Link to comment
https://forums.phpfreaks.com/topic/16285-mail-headers/
Share on other sites

Archived

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

×
×
  • Create New...

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.