473,382 Members | 1,814 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,382 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 2231
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.