diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-11-22 16:25:32 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-11-22 16:25:32 +0100 |
commit | c00a5a042341b8fe10d264ed1ea70177bc5e572d (patch) | |
tree | 88be90e02c41de95868152b8f3107d03b0b53fb8 /system/libraries/Email.php | |
parent | c737c94b6dd2044b7c1a7d506c57de7da6df97f4 (diff) | |
parent | 0199f68db46d375af2d4cb831c679d3040601f25 (diff) |
Merge master (2.1.0) and fixed conflicts.
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r-- | system/libraries/Email.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 6739db33b..7bde4c4fd 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1692,12 +1692,7 @@ class CI_Email { */ protected function _smtp_connect() { - $ssl = NULL; - - if ($this->smtp_crypto == 'ssl') - { - $ssl = 'ssl://'; - } + $ssl = ($this->smtp_crypto == 'ssl') ? 'ssl://' : NULL; $this->_smtp_connect = fsockopen($ssl.$this->smtp_host, $this->smtp_port, @@ -1717,6 +1712,7 @@ 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) @@ -2112,4 +2108,4 @@ class CI_Email { // END CI_Email class /* End of file Email.php */ -/* Location: ./system/libraries/Email.php */ +/* Location: ./system/libraries/Email.php */
\ No newline at end of file |