Re: HTML mail
| From: | Andrey Hristov | Date: | Thu, 30 Aug 2001 10:36:08 +0000 |
| Subject: | Re: HTML mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65202@lists.php.net to get a copy of this message | ||
Try this :
<?php
$EMAIL = array(
'plain' => "Haha hoho hehe ",
'html' => "<html><font size=3>Haha hoho
hehe</font></html>"
);
$headers='From: ahristov@icygen.com
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="=====================_4195058==_.ALT"
';
$message = '
--=====================_4195058==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
'.$EMAIL['plain'].'
--=====================_4195058==_.ALT
Content-Type: text/html; charset="us-ascii"
'.$EMAIL['html'].'
--=====================_4195058==_.ALT--';
mail("php-general@list.php.net", $subject, $message, $headers);
?>
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
----- Original Message -----
From: "Rosen" <rosen_dm@dir.bg>
To: <php-general@lists.php.net>
Sent: Thursday, August 30, 2001 1:18 PM
Subject: [PHP] HTML mail
> Hi,
> how can I send HTML mail via "mail()" function ?
> I readed the tutorial, but can someone write me example ?
>
> Thanks,
> Rosen
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>