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... Quote 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] Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.