From 604873fe068c39c55afa1deaafaf34a95fd3359e Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 18 Nov 2008 15:57:24 +0000 Subject: better error messages for sendmail failure --- system/language/english/email_lang.php | 1 + system/libraries/Email.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/language/english/email_lang.php b/system/language/english/email_lang.php index 932427787..e3bd113cb 100644 --- a/system/language/english/email_lang.php +++ b/system/language/english/email_lang.php @@ -17,6 +17,7 @@ $lang['email_failed_smtp_login'] = "Failed to send AUTH LOGIN command. Error: %s $lang['email_smtp_auth_un'] = "Failed to authenticate username. Error: %s"; $lang['email_smtp_auth_pw'] = "Failed to authenticate password. Error: %s"; $lang['email_smtp_data_failure'] = "Unable to send data: %s"; +$lang['email_exit_status'] = "Exit status code: %s"; /* End of file email_lang.php */ diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 89d0976ae..99a5ea385 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1549,8 +1549,9 @@ class CI_Email { $status = $status >> 8 & 0xFF; } - if ($status == 0) + if ($status != 0) { + $this->_set_error_message('email_exit_status', $status); $this->_set_error_message('email_no_socket'); return FALSE; } -- cgit v1.2.3-24-g4f1b