Re: why does a html mail send as text ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/2/4 Bulend Kolay <bmalik@xxxxxxxxxxxx>:
> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux