Skip to content

Commit

Permalink
Merge pull request splitbrain#24 from txthinking/updates
Browse files Browse the repository at this point in the history
TLS handling change
  • Loading branch information
txthinking committed Jun 10, 2020
2 parents 49cd4e5 + 55ccc4d commit ecee529
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
@@ -1,8 +1,11 @@
language: php
sudo: false
php:
- "7.4"
- "7.3"
- "7.2"
- "7.1"
- "7.0"
- "5.6"
- "nightly"
install: composer update
script: ./vendor/bin/phpunit --verbose
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -22,7 +22,7 @@
"psr/log": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"phpunit/phpunit": "~5.0",
"monolog/monolog": "~1.13"
},
"autoload": {
Expand Down
4 changes: 3 additions & 1 deletion src/Mailer/SMTP.php
Expand Up @@ -241,7 +241,9 @@ protected function starttls()
$crypto_type = STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
break;
default:
$crypto_type = STREAM_CRYPTO_METHOD_TLS_CLIENT;
$crypto_type = STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT |
STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT |
STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
break;
}

Expand Down

0 comments on commit ecee529

Please sign in to comment.