[eluser]Unknown[/eluser]
I have been working very for making my email look formatted using Dx_Auth library .
And after a lot try i changed the mail type to $config['mailtype'] = 'text'; . I wonder is it the correct way for formatting. should it work for for mailtype html instead of text.
Please reply me. I used smtp mail using dxauth.
function _email($to, $from, $subject, $message)
{
$this->ci->load->library('email');
$config['mailtype'] = 'text';
$config['charset']='utf-8';
$config['newline']="\r\n";
$config['crlf'] ="\r\n";
$config['protocol'] = 'smtp';
$config['wordwrap'] = TRUE;
$config['smtp_host'] = 'ssl://smtp.gmail.com';
$config['smtp_user'] = 'shanavasnewage';
$config['smtp_pass'] = 'newagesystems';
$config['smtp_port'] = '465'; // SMTP Port.
$config['smtp_timeout'] = '15'; // SMTP Timeout (in seconds).
$this->ci->email->initialize($config);
$email = $this->ci->email;
$email->from($from);
$email->to($to);
$email->subject($subject);
$email->message($message);
return $email->send();