Re: How to sent email in HTML format
| From: | Carlos Mabalot | Date: | Mon, 31 Jan 2000 05:54:51 +0000 |
| Subject: | Re: How to sent email in HTML format | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-15068@lists.php.net to get a copy of this message | ||
Hey Kanojia,
I sent out this email last week, and since then I've learned it is VERY
SIMPLE.
Examine the following CODE:
$headers = "from: $x_email_from\n";
$headers .= "Content-Type: text/html; charset=us-ascii\n";
$headers .= "Content-Transfer-Encoding: 7bit";
Adding the last two lines tells the email client to use the mime type
for html parsing. Just make sure the message is in an HTML format and
it will show as HTML.
Carlos Mabalot
Digital Hum Interactive Networks
webmaster@digitalhum.net
kanojia wrote:
>
> Hi
> I want know that how should i sent a mail in a html format
> ie i should be able to use table and other tag in the mail
>
> mail() send a mail in simple text
> Please help me out
>
> Regards
> Kanojia
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net