Re: why does a html mail send as text ?
| From: | Stuart | Date: | Wed, 04 Feb 2009 11:33:15 +0000 |
| Subject: | Re: why does a html mail send as text ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287600@lists.php.net to get a copy of this message | ||
2009/2/4 Bulend Kolay <bmalik@ihlas.net.tr>:
> I use php-5.2.6 and apache2.2.x on opensuse11
>
> I have a file called mailsend.php to send a mail of html format.
> the server sends the mail form of html format. But I get it as text instead
> of html.
> default_mimetype is set as text/html in php.ini file.
>
> How can I correct this ?
The default_mimetype applies to the headers returned to browsers by
PHP, it does not have any effect on emails you send.
To send HTML email I would suggest you use phpmailer[1] because it
makes the whole process quite painless.
-Stuart
[1] http://phpmailer.codeworxtech.com/
--
http://stut.net/