You are here: Re: Need help with sending HTML formatted emails « PHP Programming Language « IT news, forums, messages
Re: Need help with sending HTML formatted emails

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация