summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorSean Fisher <srtfisher@gmail.com>2011-10-27 03:45:00 +0200
committerSean Fisher <srtfisher@gmail.com>2011-10-27 03:45:00 +0200
commite862ddd7c33cc41f306d21725c93170daf864c52 (patch)
tree685a81631345851632db3f180912d284653c250b /system/libraries/Email.php
parent308692d1fad226e98482797fb3feed7a1b42601e (diff)
Crypt isn't set and it causes extensive script time when specifying a custom SMTP server
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index db6ea8f90..6739db33b 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1718,12 +1718,12 @@ class CI_Email {
$this->_send_command('hello');
$this->_send_command('starttls');
$crypto = stream_socket_enable_crypto($this->_smtp_connect, TRUE, STREAM_CRYPTO_METHOD_TLS_CLIENT);
- }
- if ($crypto !== TRUE)
- {
- $this->_set_error_message('lang:email_smtp_error', $this->_get_smtp_data());
- return FALSE;
+ if ($crypto !== TRUE)
+ {
+ $this->_set_error_message('lang:email_smtp_error', $this->_get_smtp_data());
+ return FALSE;
+ }
}
return $this->_send_command('hello');