CodeIgniter Forums
Email not sending and no error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Email not sending and no error (/showthread.php?tid=57382)



Email not sending and no error - El Forum - 03-11-2013

[eluser]Unknown[/eluser]
Hello:

I have tried smtp, sendmail and sending via my web hosting and via gmail ssl.
No email gets sent and I get no error messages.

I have debugged it and it will execute the code through this function.
But it always executes the "FALSE" blocks.

Is there a way to add more debug to this or get the mailer error?

Thanks
brian

protected function _spool_email()
{
$this->_unwrap_specials();

switch ($this->_get_protocol())
{
case 'mail' :

if ( ! $this->_send_with_mail())
{
$this->_set_error_message('lang:email_send_failure_phpmail');
return FALSE;
}
break;
case 'sendmail' :

if ( ! $this->_send_with_sendmail())
{
$this->_set_error_message('lang:email_send_failure_sendmail');
return FALSE;
}
break;
case 'smtp' :

if ( ! $this->_send_with_smtp())
{
$this->_set_error_message('lang:email_send_failure_smtp');
return FALSE;
}
break;

}

$this->_set_error_message('lang:email_sent', $this->_get_protocol());
return TRUE;
}