473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Cannot receive HTML mail on same host

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
3 2232
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
In addition to all that: are you sure you send in all the cases HTML
mail - one and the same...

Jul 17 '05 #3
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
6
by: Jeff Sandler | last post by:
I have a database I created in mySQL. I've been entering data every day into the database using a Java application that I wrote. The database and the Java program are on the same Win 98 SE...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
4
by: Morten Overgaard | last post by:
Hi I'm listening on the SysLog port (514) through UDP. The problem is that I am not receiving anything nut I know that i get messages on the port. When I use KIWI to listen on the same port via...
1
by: Kitchen Bin | last post by:
Hi. I am trying to use Sockets to do multiple Send and Receives via HTTP (not simultaneously). A first pair of Send/Receives works fine and sure enough I receive HTML back, but the next...
8
by: Jason | last post by:
Hi all I have a little FTP proggie. It works, on windows xp, but it doesnt work properly on windows 2000. The first problem i have, is when retrieving a list of files. int bytes =...
2
by: spam1 | last post by:
Hi all, I'm not new to ASP.NET but I'm trying to get a simple Hello World page going on IIS 6.0 on Windows 2003. I'm connecting from the local machine. It comes back with the standard "The...
5
by: =?Utf-8?B?bW9tbw==?= | last post by:
Hello, I've been having a prlbem sending an email using ASP.net 2.0 I can send an email if “To” address is hotmail, gmail or yahoo but not other addresses. Does anyone know how I can...
3
by: itarunachalam | last post by:
Hi Friends, Im doing web application in .net 2.0 for creating a forum, I want to receive the mail to local host(server). any one tell how to configure our localhost SMPT. Thanks in advance...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.