Hello, On 02/15/2003 03:27 AM, Mark McCulligh wrote:
As I mentioned HTML messages should have an alternative text part, so this seems ok.I am sending both text and HTML. The message I get looks like this:boundary="=_ec9ac598a5bbb069fd9a696b254780ef" --=_ec9ac598a5bbb069fd9a696b254780ef Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit TEST MESSAGE WAS HERE --=_ec9ac598a5bbb069fd9a696b254780ef Content-Type: multipart/related; boundary="=_74b5fb5ddc651b2065ec31d700d8d15c" --=_74b5fb5ddc651b2065ec31d700d8d15c Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <title>???</title> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> </head> <body> etc.... As you can see both are being displayed including some of the header info. Any idea of how this happened.
I think that your problem is that your actually delivery method is doing something wrong. Have you tried the class I mentioned? It provides work around for some problematic situations.
Regards,
Manuel Lemos
Mark. "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...Hello, On 02/14/2003 01:56 PM, Mark McCulligh wrote:If I send a HTML email using either mail() or pear mail to an emailaccountof someone who is on my email server it does not get delivered right.Butif I send a HTML email to an external email address it is fine. It also works fine with plain text email, only if you send a HTML format email. I have even setup pear mail not to use the mail function but link righttoqmail's bin folder. I can also send HTML between users in HTML using Outlook fine, only ifPHPsends do I have problem. I am using PHP 4.3.0 and qmail as my email server. Has anyone any idea of were to start looking for why this is happening. Again this only happen if it is a HTML format email and it is to aninternaluser, thus my email server routes it without leaving the server.Never send HTML only messages. It is possible that there maybe a spam filter in your server blocking HTML only messages. In the worst case, always try to send a message with a plain text and a HTML alternative parts. You may want to try this class to learn how to do it right. This class also works around some bugs of mail() function. There is also a subclass for delivery with qmail-inject program: http://www.phpclasses.org/mimemessage
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php