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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.