[eluser]moin cse[/eluser]
Hi all,
I want to send formated html email. But I have faced some problems. My email configuration is as follows-
Code:
$config['mailtype'] = 'html';
$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$config['validate'] = TRUE;
$config['charset'] = 'utf-8';
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
if i want to load a view page like-
Code:
$msg = $this->load->view('admin/email_view', $data, TRUE);
$this->email->message($msg);
then all the html codes are sending throgh email.
again if want to load the email contents from database like-
Code:
$message = $this->email_model->get_email_template_details('account_confirmation');
$msg = str_replace($patterns, $replacements, $message['content']);
$this->email->message($msg);
then how can i send the html formated email.
Please give me a direction.
Thanks in advance.
Regards