Portal Home > Knowledgebase > Articles Database > Strange PHP email headers problem
Strange PHP email headers problem
|Posted by BurakUeda, 03-14-2012, 12:25 AM|
|Everything is working fine except the $from_name part.
When I send this email, it arrives with several "reply-to" parts like this, without any "from" in the header:
same thing happens if I use space only: "MY COMPANY"
If I don't use any space, period or comma everything is fine:
Any ideas about why is this happening?
Tried to mime_encode the $from_name, but didn't work.
This is a Debian server with PHP 5.2.6
Thanks for any help.
|Posted by TomHooser, 03-14-2012, 09:10 AM|
This could be the easiest resolution
|Posted by dubdub, 03-14-2012, 09:37 AM|
|You should use
CRLF should never be in the subject, or in the middle of any header..
Add to Favourites Print this Article