Forum Moderators: phranque
I suspect the answer to this puzzle is a default setting outside PHP - possibly in qmail.
I need to send emails in Chinese GB2312 encoding so they can be read in Hotmail via a web browser.
I can manage this on my development server (a shared server managed by a hosting firm).
However, when I send mail from the production server (different hosting) all messages get encoded and the following headers are inserted at the end of any headers I specify:
Content-Type: text/plain; charset=UTF-8
Mime-Version: 1.0
Content-Transfer-Encoding: BASE64
The message ID is of the form: Message-ID: <20070317014242.#*$!XX.qmail@domain.dnsXX.com> so I'm guessing that qmail has a role in the header insertion. The development server doesn't use qmail.
Any suggestions to stop the encoding and header insertion will be greatly appreciated!
FWIW I tried to get around this problem using the SMTP option in the LGPL PHP phpmailer class but it seems that Hotmail eagerly rejects SMTP mail :-(
I'm not familiar with qmail so I can't help you there. I send my Chinese mail through a CGI that uses a sendmail variant on my host. That doesn't seem to have a problem injecting headers.
Thanks for your reply.
I should clarify. Happily, sending via SMTP does not inject headers - I get nice clean messages.
The problem with SMTP is simply that Hotmail rejects emails sent this way. I'll try implementing Sender ID to resolve this.
Could be a nice fix - certainly easier than modding qmail I hope! Thanks again :)