Below are my code and I refer all examples in stack overflow and codeigniter user guide. still I unable to solve this
public function send()
{
$config['protocol'] = 'smtp';
$config['smtp_crypto'] = 'ssl';
$config['smtp_host'] = 'smtp.gmail.com';
$config['smtp_port'] = '465';
$config['smtp_user'] = '**********@gmail.com';
$config['smtp_pass'] = '********';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['wordwrap'] = TRUE;
$config['smtp_timeout'] = 30;
$this->email->initialize($config);
$this->email->from('uvizag@gmail.com', 'admin');
$this->email->to('siddharthaesunuri@gmail.com, siddhu.php@gmail.com');
$this->email->subject('Registration Verification:');
$message = "Thanks for signing up! Your account has been created...!";
$this->email->message($message);
if ( ! $this->email->send()) {
show_error($this->email->print_debugger());
}
}
How Can I solve this error ? could please favor to me