Jump to content


Photo

mail() headers


  • Please log in to reply
1 reply to this topic

#1 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 02 August 2006 - 03:26 AM

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?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#2 ronverdonk

ronverdonk
  • Members
  • PipPipPip
  • Advanced Member
  • 277 posts
  • LocationNetherlands

Posted 02 August 2006 - 10:32 AM

What value has variable $no_reply ?

Ronald  ;D
RTFM is an almost extinct art form, it should be subsidized.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users