Send HTML as the message of the email. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Send HTML as the message of the email. (/showthread.php?tid=33180) |
Send HTML as the message of the email. - El Forum - 08-18-2010 [eluser]chengfeng[/eluser] I am learning to send the email. If the message is a simple text, it is ok. But when I send the message as HTML, It displays the HTML code. Code: $msg="<table> Thanks for helping me! Send HTML as the message of the email. - El Forum - 08-18-2010 [eluser]mddd[/eluser] 1: Have you set the email library to use html email? 2: If you send html email you should put in a complete html page. From <html> to </html> tag, including head and body. Also: Are you using actual email addresses in your example code? Seems like a bad idea. |