Skip to content

[Mailer][MailerSend] Supplied transport does not work, generic transport does #60636

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

Closed
ovgray opened this issue Jun 2, 2025 · 4 comments
Closed

Comments

@ovgray
Copy link
Contributor

ovgray commented Jun 2, 2025

Symfony version(s) affected

7.2, 7.3

Description

With symfony/mailer-send-mailer installed, wWhen I use this DSN:
mailersend+smtp://USERNAME:PASSWORD@default
I get this exception:
Connection could not be established with host "ssl://smtp.mailersend.net:587": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:0A00010B:SSL routines::wrong version number

If I use this DSN, however:
smtp://USERNAME:PASSWORD@smtp.mailersend.net:587
Connection is established and message is sent.

How to reproduce

Install transport. Try sending.

Possible Solution

Hopefully those who understand what's going on under the hood better than I do can figure out from the working generic transport DSN and the error message why the supplied transport does not work.

Additional Context

No response

@xabbuh
Copy link
Member

xabbuh commented Jun 2, 2025

I guess the difference is that the MailerSendSmtpTransport tries to establish a TLS connection while the EsmtpTransport does that only if you use the smtps scheme. I would expect that you see the same error when using smtps://USERNAME:PASSWORD@smtp.mailersend.net:587 for the DSN.

@ovgray
Copy link
Contributor Author

ovgray commented Jun 2, 2025 via email

@xabbuh
Copy link
Member

xabbuh commented Jun 2, 2025

@ovgray Can you give #60640 a try?

@ovgray
Copy link
Contributor Author

ovgray commented Jun 2, 2025 via email

nicolas-grekas added a commit that referenced this issue Jun 3, 2025
This PR was merged into the 6.4 branch.

Discussion
----------

[Mailer] use STARTTLS for SMTP with MailerSend

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #60636
| License       | MIT

Commits
-------

16c8a94 use STARTTLS for SMTP with MailerSend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy