Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Cannot receive HTML mail on same host
- Remon Huijts
May 4, 2005, 7:11 am
rate this thread
When I use php mail() in a script on my localhost to send an HTML
message to an e-mailaccount on my online host, all is fine.
When I use php mail() in a script on my online host to send an HTML
message to some e-mailaccount other than on my online host, all is fine.
But when I use php mail() in a script on my online host to send an HTML
message to an e-mailaccount on that same online host, I receive the
message code as plain text.
Does anyone know why this happens?
Thanks in advance,
Re: Cannot receive HTML mail on same host
Tim Roberts wrote:
Yes, it's the same mail reader, with the same options. I ran the script
on my localhost and it worked, then uploaded the script and thus tried
to send the same html message to the same recipient. This test fails
when the recipient is on the same domain name.
Absolutely sure, I only use one mail reader (Thunderbird) and I read my
mail at home only.
Somebody suggested that the (mis)use of line endings could cause this,
but I have not looked into that yet.