adyre Posted June 10, 2006 Share Posted June 10, 2006 How can I send a mail with an atachment and with HTML...For HTMl I tried Content Type and it doesen't work to send to yahoo...Don't wan't phpmailer... just a simple cod...Anticipated 10x... Link to comment https://forums.phpfreaks.com/topic/11671-advance-mail-mail-with-attach-html-mail/ Share on other sites More sharing options...
poirot Posted June 10, 2006 Share Posted June 10, 2006 It's all about the headers. For HTML mail:[code]$headers = "MIME-Version: 1.0\r\n";$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";[/code]As for attachments, you might want to look at this:[a href=\"http://www.finalwebsites.com/snippets.php?id=36\" target=\"_blank\"]http://www.finalwebsites.com/snippets.php?id=36[/a] Link to comment https://forums.phpfreaks.com/topic/11671-advance-mail-mail-with-attach-html-mail/#findComment-44125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.