[thelist] PHP mail headers

Pete Freitag pf at cfdev.com
Wed Sep 26 11:34:06 CDT 2001


No I would leave the \r\n the SMTP RFC requires that you use CRLF.

_____________________________________________
Pete Freitag (pfreitag at cfdev.com)
CFDEV.COM
ColdFusion Developer Resources
http://www.cfdev.com/
 

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Jeremy Ashcraft
Sent: Wednesday, September 26, 2001 12:14 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] PHP mail headers


You might try removing the \r from you $headers string and just use \n.  

jeremy

> while($row = mysql_fetch_array($sql_result)) {
>      $email = $row["email"];
>      $firstname = $row["firstname"];
>      $secondname = $row["secondname"];
>
>      $headers ="From: mailinglist at pauloakenfold.com\r\nReply-To:
> mailinglist at pauloakenfold.com\r\nTo: '".$firstname." ".$secondname."'
> <".$email.">";
>
>      mail($email,$subject,$body,$headers);
> }


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 





More information about the thelist mailing list