CodeIgniter Forums
mailtype => 'html' - 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: mailtype => 'html' (/showthread.php?tid=34082)



mailtype => 'html' - El Forum - 09-17-2010

[eluser]Unknown[/eluser]
Please Help, I'm a newbie.
I use mail library for sending email. I'd already set configuration mailtype to html
"mailtype => 'html'". Because the page i would like to send have table tag. But i always get the 'text' result in my yahoo and my gmail. Is there anything wrong? Sad


mailtype => 'html' - El Forum - 09-18-2010

[eluser]bobbob[/eluser]
you are doing it like this i assume:
Code:
$this->load->library('email');        
$config['mailtype'] = 'html';
$this->email->initialize($config);



mailtype => 'html' - El Forum - 09-18-2010

[eluser]Unknown[/eluser]
Thanks for the reply

i use this code :

$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'http://example.com',
'smtp_port' => 25,
'smtp_user' => '[email protected]',
'smtp_pass' => 'xxxxxx',
'mailtype' => 'html',
'charset' => 'iso-8859-1'
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");


Is there something wrong with my code?
Need some advice.