Dysan Posted March 17, 2008 Share Posted March 17, 2008 Hi, I can send text only emails, but how does one send HTML ones? Link to comment https://forums.phpfreaks.com/topic/96626-send-html-email/ Share on other sites More sharing options...
Jeremysr Posted March 17, 2008 Share Posted March 17, 2008 I think you send them the exact same way as you send text ones. (HTML code is plain text.) Link to comment https://forums.phpfreaks.com/topic/96626-send-html-email/#findComment-494468 Share on other sites More sharing options...
Dysan Posted March 18, 2008 Author Share Posted March 18, 2008 How do I display some text within an email in bold? Link to comment https://forums.phpfreaks.com/topic/96626-send-html-email/#findComment-494495 Share on other sites More sharing options...
corbin Posted March 18, 2008 Share Posted March 18, 2008 http://us2.php.net/manual/en/function.mail.php Example number 4. Link to comment https://forums.phpfreaks.com/topic/96626-send-html-email/#findComment-494498 Share on other sites More sharing options...
eddierosenthal Posted March 18, 2008 Share Posted March 18, 2008 html is not just plain text. it takes a different 'mime' type to send it. that way it is recognizable as tagged text that needs to be interpreted by the mail client. make your life easier and look at the php mailer class that allows you to send BOTH text and HTML and images etc... see the site: http://phpmailer.codeworxtech.com/tutorial.html read installation and download and you will be happy camper! hth Link to comment https://forums.phpfreaks.com/topic/96626-send-html-email/#findComment-494542 Share on other sites More sharing options...
Dysan Posted March 18, 2008 Author Share Posted March 18, 2008 That's Extremely Helpful Cheers Everyone. It's Working. One last question though: I am sending the emails to my Hotmail account, and they are getting block as being potentially dangerous. Why is this? How do I stop this? Link to comment https://forums.phpfreaks.com/topic/96626-send-html-email/#findComment-494792 Share on other sites More sharing options...
eddierosenthal Posted March 18, 2008 Share Posted March 18, 2008 likely you have 1) not added the FROM method in a way the client can recognize it or 2) you have some spam filter enabled and need to add to the list of allowable senders? glad you found the thing working though. Link to comment https://forums.phpfreaks.com/topic/96626-send-html-email/#findComment-494972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.