CodeIgniter Forums
I can not send HTML email with email class - 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: I can not send HTML email with email class (/showthread.php?tid=21459)



I can not send HTML email with email class - El Forum - 08-10-2009

[eluser]Alenazi[/eluser]
I tried to send html email with email class but it did not work. The email was received as plain text with html tags not interpreted

My code looks like this
Code:
$config['protocol'] = 'smtp';
        $config['mailtpye'] = 'html';
        $config['smtp_host'] = 'smtp.al3gari.com';
        $config['smtp_user'] = '[email protected]';
        $config['smtp_pass'] = '******************';
        $config['smtp_port'] = '25';
        $config['newline'] = "\r\n";
        $this->CI->load->library('email',$config);



I can not send HTML email with email class - El Forum - 09-29-2009

[eluser]density5[/eluser]
[quote author="Alenazi" date="1249966175"]I tried to send html email with email class but it did not work. The email was received as plain text with html tags not interpreted

My code looks like this
Code:
$config['protocol'] = 'smtp';
        $config['mailtpye'] = 'html';
        $config['smtp_host'] = 'smtp.al3gari.com';
        $config['smtp_user'] = '[email protected]';
        $config['smtp_pass'] = '******************';
        $config['smtp_port'] = '25';
        $config['newline'] = "\r\n";
        $this->CI->load->library('email',$config);
[/quote]

looks wrong -> $config['mailtpye'] = 'html';
Shoud it not be -> $config['mailtype'] = 'html';