Re: HTML Email
| From: | Carroll Barrett | Date: | Mon, 19 Jun 2000 22:14:08 +0000 |
| Subject: | Re: HTML Email | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2248@lists.php.net to get a copy of this message | ||
Yoed,
I have had success with a command like this:
mail($to,$subject, "From: $from\nContent-Type: text/html;
charset=iso-8859-1");
I used a tip from the mail() page in the manual at <www.php.net>.
I believe the important thing is the newline at the end of the
header.
Carroll Barrett
-----Original Message-----
From: Yoed Anis <yoed@zarcrom.com>
To: php-general@lists.php.net <php-general@lists.php.net>
Date: Monday, June 19, 2000 5:19 PM
Subject: [PHP-GENERAL] HTML Email
>Hello Guys,
>
>I've been looking around the web for a solution to a problem I'm
trying to
>solve... unfortunately I've only been able to find the
questions, not the
>answers.
>
>I'm trying to make PHP send out an e-mail coded in HTML (so I
can have
>things like nice fonts and tables in it).
>I've been using the mail function, and I've been trying to pass
the
>following variables via the header:
>$mailHeaders = "From: $email";
>$mailHeaders .= "MIME-Version: 1.0";
>$mailHeaders .= "Content-Type: text/html";
>$mailHeaders .= "X-Header-Type: HTML";
>
>Yet it doesn't seem to work.
>If anyone has experience in getting PHP to send HTML email, some
insight
>would be appreciated. :-)
>
>Best Regards,
>Yoed
>just some another clueless IT...
>
>P.S.
>please reply directly to me as well as the list.
>
>
>--
>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
>