Re: imap_mail()

From: Date: Mon, 31 Dec 2007 20:23:55 +0000
Subject: Re: imap_mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266436@lists.php.net to get a copy of this message
$headers = "From: \"Thomas Le\" <tvle83@gmail.com>\nMailed-by: whatever\n"; mail('tvle83@gmail.com', 'test', 'test', $headers); NOTE: The RFC says use \r\n between headers. gmail is broken and will puke if you do. Complaint to gmail, please. On Sat, December 22, 2007 10:27 pm, Thomas Le wrote: > How do I structure the $additionalHeaders string so that it is useful? > Is > there a specific order the headers have to be in? How do I delimit > multiple > headers? I want the from and mailed-by fields to be modified by this > variable when mailed from the PHP script. I am getting the server name > of my > host instead of the domain name of my site. Minor thing because most > people > probably dont look at headers, but I want it to be professional > looking in > case someone does. > > Thank you, > > Thomas Le > "Choose a job you love, and you'll never have to work a day in your > life." - > Confucius > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#266436) next »