By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Cannot receive HTML mail on same host

P: n/a
Hi,

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,

Remon Huijts.
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Remon Huijts <tr*****@hotmail.com> wrote:

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?


mail() can't do that. Are you using the same mail reader in all cases,
with the same options? Are you absolutely sure?
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 17 '05 #2

P: n/a
In addition to all that: are you sure you send in all the cases HTML
mail - one and the same...

Jul 17 '05 #3

P: n/a
Tim Roberts wrote:
Remon Huijts <tr*****@hotmail.com> wrote:
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?

mail() can't do that. Are you using the same mail reader in all cases,
with the same options? Are you absolutely sure?


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.

Remon.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.