Hi,
I'm not sure if sendmail is the problem here, but this is my last avenue after searching for almost two weeks for answers based on PHP and Qmail threads.
I was hoping someone may have seen this before, so here is the situation.
We have two PHP mail scripts running on our site at "Host A". One script sends submitted form data to us here, the other, a nicely formatted HTML confirmation to the user. (Yes I know how much HTML mail suck, but the boss loves them)
This whole setup on "Host A" worked perfectly without a hitch.
We now have upgraded to a dedicated server at "Host B", runing FreeBSD 4.8, Apache, Qmail and PHP.
A copy of the site has been moved there and the scripts tested with no changes made to the scripts.
This is what happens when the forms are submitted from "Host B":
1. When testing and entering a "client" email that resides on the same server (ie. my own), the HTML email is displayed in code only, and most of the headers displayed in the content.
2. If sent to my own Hotmail account, the HTML emails work fine.
3. If sent to my personal account, a different server in New Zealand which I access through neomail web mail, The HTML email is displayed in code only (The same as 1. above), but the formatted email is there as an attachment.
The obvious first choice was looking at the scripts, but like I said, they worked perfectly fine on the "Host A". We confirmed this when we wrote a tiny "Hello World" HTML mail() script, which had the same results as above.
It is definately not the clients, as this problem does not occur on those clients when the emails are sent from "Host A"
If it's worth anything, I managed to get the simple script working by commenting out the header entry:
And making sure this header entry was appended last (after "To: ", "CC: " etc):
My Host has very good support, but they are as bamboozled as me, and I have not found anything on the Net in 8 days of searching, but tend to get warmer when looking at sendmail.
Has anyone seen this before? Ideas? I will personally send a nice cold pint of beer to the person who finally ends this nightmare for me.
Cheers
Aaron
I'm not sure if sendmail is the problem here, but this is my last avenue after searching for almost two weeks for answers based on PHP and Qmail threads.
I was hoping someone may have seen this before, so here is the situation.
We have two PHP mail scripts running on our site at "Host A". One script sends submitted form data to us here, the other, a nicely formatted HTML confirmation to the user. (Yes I know how much HTML mail suck, but the boss loves them)
This whole setup on "Host A" worked perfectly without a hitch.
We now have upgraded to a dedicated server at "Host B", runing FreeBSD 4.8, Apache, Qmail and PHP.
A copy of the site has been moved there and the scripts tested with no changes made to the scripts.
This is what happens when the forms are submitted from "Host B":
1. When testing and entering a "client" email that resides on the same server (ie. my own), the HTML email is displayed in code only, and most of the headers displayed in the content.
2. If sent to my own Hotmail account, the HTML emails work fine.
3. If sent to my personal account, a different server in New Zealand which I access through neomail web mail, The HTML email is displayed in code only (The same as 1. above), but the formatted email is there as an attachment.
The obvious first choice was looking at the scripts, but like I said, they worked perfectly fine on the "Host A". We confirmed this when we wrote a tiny "Hello World" HTML mail() script, which had the same results as above.
It is definately not the clients, as this problem does not occur on those clients when the emails are sent from "Host A"
If it's worth anything, I managed to get the simple script working by commenting out the header entry:
Code:
$headers = "MIME-Version: 1.0\r\n";
And making sure this header entry was appended last (after "To: ", "CC: " etc):
Code:
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
My Host has very good support, but they are as bamboozled as me, and I have not found anything on the Net in 8 days of searching, but tend to get warmer when looking at sendmail.
Has anyone seen this before? Ideas? I will personally send a nice cold pint of beer to the person who finally ends this nightmare for me.
Cheers
Aaron