You are here: Re: Send an email with HTML « PHP Programming Language « IT news, forums, messages
Re: Send an email with HTML

Posted by Tim Roberts on 10/29/05 22:49

Thierry <abuse@microsoft.com> wrote:

>Malcolm Dew-Jones a écrit :
>> Thierry (abuse@microsoft.com) wrote:
>> : Hello.
>>
>> : Is it possible to send an email with some HTML code ?
>>
>> The header of the mail message needs "Content-type: text/html"
>>
>> Of course you understand that that header is also used by many mail
>> filters to reject unwanted mail.
>
>But I need something that will not be rejected :-(

"Many" is an exaggeration. A few zealots do reject mail that is HTML-only.

The more acceptable method is to include both an HTML part and a plain
part.

Subject: This is my message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="____separator____"

This section is only read by mail readers that do not understand MIME.

--____separator____
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

This is the plain text section.

--____separator____
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html><body><h1>This is the <i>HTML</i> section.</h1></body></html>

--____separator____--
--
- 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

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