Skip to content

Commit

Permalink
Merge pull request #3 from mifreudenthaler/master
Browse files Browse the repository at this point in the history
Optionally use tlsv1.2
  • Loading branch information
mifreudenthaler authored Nov 20, 2023
2 parents 30f94db + 1d03df8 commit d6a3c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Mail/Protocol/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function helo($host = '127.0.0.1')
if ($this->_secure == 'tls') {
$this->_send('STARTTLS');
$this->_expect(220, 180);
if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)) {
/**
* @see Zend_Mail_Protocol_Exception
*/
Expand Down

0 comments on commit d6a3c61

Please sign in to comment.