Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shopware5/SwagFixDeprecatedTlsInSmtp
https://github.com/shopware5/SwagFixDeprecatedTlsInSmtp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/shopware5/SwagFixDeprecatedTlsInSmtp
- Owner: shopware5
- Created: 2018-06-11T09:06:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T09:11:20.000Z (over 6 years ago)
- Last Synced: 2024-04-24T15:26:38.272Z (5 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 4
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwagFixDeprecatedTlsInSmtp
## What does this plugin do?
This plugin patches the Zend_Mail_Protocol_Smtp class to allow all available encryption methods (TLS 1.0, TLS 1.1 or TLS 1.2) to be used if the mail server supports it.
## Why is this patch necessary?
The PHP constant `STREAM_CRYPTO_METHOD_TLS_CLIENT` changes it's values between versions: PHP versions 5.6.7 - 5.6.30 and 7.0.0 - 7.1.17 defined the constant as "Only TLS 1.0 is supported", leading to the result that only this encryption method is provided to an SMTP server as an available encryption option. Other PHP versions support multiple available encryption methods in this constant, resulting in an automatic upgrade of the encryption if the mail server requires it.
Since TLS 1.0 has been deprecated a long time, some mail hosters are starting to disable the support for it, resulting in shops running one of the broken PHP versions not being able to send any email.
## Installation
* Upload the plugin with plugin manager
* Install the plugin and activate it
* Clear all caches