Skip to content
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

Symfony\Component\Mailer\Exception\TransportException after upgrading to 11.35.0 #53861

Closed
laserhybiz opened this issue Dec 12, 2024 · 5 comments · Fixed by #53863
Closed

Symfony\Component\Mailer\Exception\TransportException after upgrading to 11.35.0 #53861

laserhybiz opened this issue Dec 12, 2024 · 5 comments · Fixed by #53863
Labels

Comments

@laserhybiz
Copy link

Laravel Version

11.35.0

PHP Version

8.3.13

Database Driver & Version

No response

Description

After upgrading to 11.35.0 in two projects I get these errors when trying to send a mail

Connection could not be established with host \"ssl://smtp.resend.com:587\": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:0A00010B:SSL routines::wrong version number
Connection could not be established with host \"ssl://smtp.gmail.com:587\": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1408F10B:SSL routines:ssl3_get_record:wrong version number

Steps To Reproduce

Set .env mail variables to

MAIL_MAILER=smtp
MAIL_PORT=587
MAIL_ENCRYPTION=tls

and send a mail

@laserhybiz
Copy link
Author

Looks like this is caused by #53749

@crynobone
Copy link
Member

crynobone commented Dec 12, 2024

Can you test it with

MAIL_ENCRYPTION=(null)

Symfony Mailer has removed support for encryption in version 4.4 but we still have these options from swiftmailer era.

@laserhybiz
Copy link
Author

@crynobone it does work fine when I set MAIL_ENCRYPTION to null.
I still think this should be considered as a BC since by just updating the minor version the current functionality breaks.

@laserhybiz
Copy link
Author

and the encryption option is still in the skeleton

@crynobone
Copy link
Member

Either way, keeping MAIL_ENCRYPTION=(null) should solve your project right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants