You are here: Re: Using mail() for HTML bodies. « PHP Programming Language « IT news, forums, messages
Re: Using mail() for HTML bodies.

Posted by bill on 10/13/07 10:34

jodleren wrote:
> Hi fellow
>
> I read about this here, and I need a simple form to post and mail a
> simple table (formatting) in HTML.
> My message is somthing like: <html><body><table....
>
> I have a header as this.
>
> $headers = "From:".$_POST["v8"]."\r\n".
> "To:sonnich@--hot.ee\r\n".
> "MIME-Version: 1.0\r\n" .
> "Content-Type: text/html;\r\n";;
> if (mail('sonnich@--hot.ee', 'T&auml;idetud ankeet', $message,
> $headers))
>
> My problems:
> the body remains plain text in Outlook Express.
>>From is not visible
> The &auml; remains as is in the header (should be ä)
>
> Though my email is there twice, but the mail only once :-)
>

May I cordially request that the gurus cut the guy some slack.
While I agree that plain text is best, generally, sometimes for
limited distribution html may be best.

For example, suppose that one needs to email a table to a
computer-illiterate boss.... one, known recipient.

I suppose one could build a .pdf and send that, but it would seem
that is overkill for a simple report to the boss.

bill

 

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

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