Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > imap_mail()
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd November 01:55
tvle83
External User
 
Posts: 1
Default imap_mail()



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
  Reply With Quote


 


2 4th November 10:02
ceo
External User
 
Posts: 1
Default imap_mail()



$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.


--
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?
  Reply With Quote
Reply


Thread Tools
Display Modes




666