Welcome Guest, Not a member yet? Register   Sign In
Send HTML as the message of the email.
#1

[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>
         <tr><th>Firstname</th><th>Lastname</th></tr>
         <tr><td>John</td><td>Doe</td></tr>
      </table>";
$this->email->from('[email protected]', 'Chen');
$this->email->to('[email protected]');
$this->email->subject('Email Test');
$this->email->message($msg);
$this->email->send();

Thanks for helping me!


Messages In This Thread
Send HTML as the message of the email. - by El Forum - 08-18-2010, 04:00 AM
Send HTML as the message of the email. - by El Forum - 08-18-2010, 04:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB