|
Posted by Tim Roberts on 10/01/07 06:09
Big Moxy <bigmoxy@gmail.com> wrote:
>
>Here is my code for formatting an HTML email. I know that spinning
>through the $_POST array as I am isn't very pretty but it's a long
>list so for now I'm using this approach. The problem is that despite
>setting the Content-type the resulting email arrives in plain text.
What do you mean by that? Do you mean you see the HTML tags?
>Outlook 2003 is my email client and I receive HTML emails without a
>problem.
Most HTML emails come in as Content-Type: multipart/alternative with a
text/html section and a text/plain section. However, what you describe
should work. Have you tried wrapping the HTML with <html> and <body> tags?
> $message.= "<b>" . $key . "</b>" . " " . ":" . " " . $value . "<br /
>>";
Why would you do it that way, instead of the much more efficient:
$message.= "<b>$key</b> : $value<br/>";
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Navigation:
[Reply to this message]
|