Re: [help] Bizarre mail() problem
- From: Ben Jamieson <ben@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 12:26:05 -0400
On 2005-09-28 08:53:52 -0400, DrTebi <drtebi@xxxxxxxxx> said:
Hello, what comes to mind is that you are not using end of line characters for your extra headers (the "From: $admin_email").
A couple things to try, change the mail line to this: mail($toaddress,$subject,$body, "From: $admin_email\n"); or this: mail($toaddress,$subject,$body, "From: $admin_email\r\n"); or this: mail($toaddress,$subject,$body, "From: $admin_email\r\n\r\n"); If that does still not work, try this: mail($toaddress,$subject,$body);
This should fix it I hope, because as far as I know, there must be an extra line break after all the header stuff.
DrTebi
Thanks for the feedback, but that's not it. Same format I'm using on 47 other client sites, all on the same server (mine), all working just fine
The only thing I can think of is that there are some stray, invisible characters in the message body. Some of the variables I am dumping in there are stored in the mysql table encrypted with blowfish routines. I am wondering if the decryption is leaving something weird and invisible in the result, as the message *always* gets cut immediately following one of the included variables, though which one appears completely random.
No idea how to test for this though....
.
- References:
- Re: [help] Bizarre mail() problem
- From: DrTebi
- Re: [help] Bizarre mail() problem
- Prev by Date: Re: libmysqlclient : compiler can not find ?
- Next by Date: Re: libmysqlclient : compiler can not find ?
- Previous by thread: Re: [help] Bizarre mail() problem
- Next by thread: What is the difference between php & asp?
- Index(es):
Relevant Pages
|