Failed to send AUTH LOGIN command in codeigniter

try this

 $from = '[email protected]';
 $to   = '[email protected]';
 $subject = 'your subject';
 $message = 'your message';

 $this->load->library('email');

 $config['mailtype'] = 'html';
 $config['smtp_port']='465';
 $config['smtp_timeout']='30';
 $config['charset']='utf-8';
 $config['protocol'] = 'smtp';
 $config['mailpath'] = '/usr/sbin/sendmail';
 $config['charset'] = 'iso-8859-1';
 $config['wordwrap'] = TRUE;

 $this->email->initialize($config);
 $this->email->from($from);
 $this->email->to($to);
 $this->email->subject($subject);
 $this->email->message($message);

 // Sending Email
 $this->email->send();