-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to send the email when TLS is enabled in PHP 5.5 version #2943
Comments
Being stuck on PHP 5.5 isn't good! That this is occurring at the STARTTLS stage suggests you have a mismatch in capabilities between your PHP and your mail server. PHP 5.6 made some big changes to TLS support, including adding support for TLS 1.2, which might be a requirement of your mail server. If you set Check the version of openssl that your PHP build uses. TLS 1.2 support was added in openssl 1.0.1, so check whether you have that (in |
Hi @Synchro , |
Please check these things before submitting your issue:
SMTPDebug = 2
setphpmailer
, but search first!Problem description
Unable to send the email when TLS is enabled in PHP 5.5 version but the same thing is work in PHP 5.6.
Actually, our code base is very large so, we are not good to upgrade the PHP version for now.
Could you help us to resolve the issue, We have tried lots of but not gotten anything.
Currently, we are disabling the tools for email sending in php 5.5 env. but we need to use tls in the same env.
We are using send grid for mail sending. So we also discuss with SendGrid support they also told us we need to upgrade the php version or disable the tls.
Our single remaining chance is with you, and if you would help us, we'll be eternally thankful.
Code to reproduce
Debug output
SSL loaded
2023-08-11 08:10:27 SERVER -> CLIENT: 220 SG ESMTP service ready at geopod-ismtpd-4
2023-08-11 08:10:27 CLIENT -> SERVER: EHLO localhost.localdomain
2023-08-11 08:10:27 SERVER -> CLIENT: 250-smtp.sendgrid.net250-8BITMIME250-PIPELINING250-SIZE 31457280250-STARTTLS250-AUTH PLAIN LOGIN250 AUTH=PLAIN LOGIN
2023-08-11 08:10:27 CLIENT -> SERVER: STARTTLS
2023-08-11 08:10:27 SERVER -> CLIENT: 220 Begin TLS negotiation now
SMTP Error: Could not connect to SMTP host.
2023-08-11 08:10:28 SMTP NOTICE: EOF caught while checking if connected
SMTP Error: Could not connect to SMTP host.
Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host.SMTP server error: Called QUIT without being connected
The text was updated successfully, but these errors were encountered: