summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-11-18 16:57:24 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-11-18 16:57:24 +0100
commit604873fe068c39c55afa1deaafaf34a95fd3359e (patch)
treebd447d6107e9d24e4c49673aa492eff0c2eec5a1
parentb859df894145b8a41609958917cf394fc46b8b10 (diff)
better error messages for sendmail failure
-rw-r--r--system/language/english/email_lang.php1
-rw-r--r--system/libraries/Email.php3
2 files changed, 3 insertions, 1 deletions
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;
}