-
Notifications
You must be signed in to change notification settings - Fork 2.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
@MailerName not working with different SMTP servers #36567
Labels
Milestone
Comments
/cc @cescoffier (mailer) |
Thanks for the reproducer. How do you run the smtp server? |
Sorry, you are using mail pit! That's great! |
I have the fix. |
cescoffier
added a commit
to cescoffier/quarkus
that referenced
this issue
Oct 19, 2023
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Oct 26, 2023
Fix quarkusio#36567 (cherry picked from commit 1b409c6)
holly-cummins
pushed a commit
to holly-cummins/quarkus
that referenced
this issue
Feb 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Quarkus fails to send emails using different SMTP servers when using: @MailerName
The config is readed ok by quarkus, however the problem is that the SMTPConnectionPool returns always the same connection with the same MailConfig. Making all @MailerName to use the same connection.
Expected behavior
Each @MailerName should use its own SMTPConnectionPool. And send the emails using each connection
Actual behavior
Each @MailerName share the same SMTPConnectionPool. And send the emails using only one connection
How to Reproduce?
Use the code on:
https://github.com/wansors/quarkus-multiple-mailers-test
Try sending emails on dev using the endpoints:
http://localhost:8080/smtp/send/1 http://localhost:8080/smtp/send/2
One @MailerName is using an incorrect port, however mails are send anyway because the vertex SMTPConnectionPool returns always the same config
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.4.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: