Re: problems with creating both HTML and plaintext emails
From: Sam (sam_at_email-scan.com)
Date: 01/21/05
- Next message: Sam: "Re: problems with creating both HTML and plaintext emails"
- Previous message: Michael Fesser: "Re: $result = $className::$methodName(); - possible?"
- In reply to: news_at_celticbear.com: "problems with creating both HTML and plaintext emails"
- Next in thread: news_at_celticbear.com: "Re: problems with creating both HTML and plaintext emails"
- Reply: news_at_celticbear.com: "Re: problems with creating both HTML and plaintext emails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Jan 2005 19:03:16 -0600
news@celticbear.com writes:
> Below will be the PHP script I'm using to create the message.
> But what's happening is that it appears to work fine in the major
> E-mail clients like Outlook and Thunderbird, but doesn't work in Kmail
> or Evolution or other clients.
>
> What am I doing wrong?
> "Content-Type:multipart/alternative;\n" .
> " boundary=\"{$mime_boundary}\r\n\"";
Bug #1. For starters, you're using LF everywhere else, and here you have
CRLF. Furthermore, it's misplaced. It should be after the closing quote.
You'll have to investigate whether PHP's mail() functions expects all lines
to be terminated by LF, or CRLF. I don't recall offhand. Then you must
change your code and use a consistent EOL.
> <title>HTML MSG HERE</title>
> </head>
> <body bgcolor=\"#ffffff\">
> </body>
> </html>
> ".
> "--{$mime_boundary}\n
> ";
Bug #2. The closing boundary delimiter should have a trailing "--".
- application/pgp-signature attachment: stored
- Next message: Sam: "Re: problems with creating both HTML and plaintext emails"
- Previous message: Michael Fesser: "Re: $result = $className::$methodName(); - possible?"
- In reply to: news_at_celticbear.com: "problems with creating both HTML and plaintext emails"
- Next in thread: news_at_celticbear.com: "Re: problems with creating both HTML and plaintext emails"
- Reply: news_at_celticbear.com: "Re: problems with creating both HTML and plaintext emails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|