Nelak Posted January 26, 2007 Share Posted January 26, 2007 How do u send html mails using mail()? I tried just putting straight html into the mail body but it just displayed it as text.Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/35782-php-mailing/ Share on other sites More sharing options...
Cep Posted January 26, 2007 Share Posted January 26, 2007 You need to specify that the email is in html format in the headers,[code=php:0]// To send HTML mail, the Content-type header must be set$headers = 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";[/code] Link to comment https://forums.phpfreaks.com/topic/35782-php-mailing/#findComment-169574 Share on other sites More sharing options...
Nelak Posted January 26, 2007 Author Share Posted January 26, 2007 Thanks a lot m8, appreciate it. Link to comment https://forums.phpfreaks.com/topic/35782-php-mailing/#findComment-169580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.