Welcome Guest, Not a member yet? Register   Sign In
mailtype => 'html'
#1

[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
#2

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

[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.




Theme © iAndrew 2016 - Forum software by © MyBB