Re: HTML mail
| From: | Jonathan Villa | Date: | Mon, 03 Nov 2003 01:21:43 +0000 |
| Subject: | Re: HTML mail | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31390@lists.php.net to get a copy of this message | ||
Set Content-Type: text/html in your headers
And just enter in html as your body
example
$body = "\n
<html>
<head>
<title></title>
</head>
<body>
the rest of your html
</body>
</html>";
mail($to,$subject,$body,$headers)
get the picture?
On Sun, 2003-11-02 at 19:20, Ronald Wiplinger wrote:
> I got an interesting program to do:
>
> For an MLM company I should make the news letter from the upline to the
> direct downline (A sends emails to his NEXT DIRECT downline B1~ B12 emails)
> To use a database with the from-line and the (three only) to-lines from
> the same data
> base is easy. HOWEVER, they want me to send HTML emails (with their
> products ....)
>
> How can I send a HTML email via php?
>
> bye
>
> Ronald
>
> --
> Ronald Wiplinger (CEO of ELMIT)
> http://www.elmit.com +886 (0) 915 653-452
> - I'm a SpamCon Foundation Member, #694, Verify it at
> http://www.spamcon.org
>
>
> PS: Spam prevention!
> Our system is protected with a spam prevention program.
> If you send us an e-mail, our system will send you a confirmation message back. Just reply to
> this confirmation message please.
> After receiving this confirmation message, our system will send the hold message (one) and all
> future messages (after the received confirmation message) to me without asking you again.