mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #455] Spring Boot / JavaMail cannot send mails? #293
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#293
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @twiedow on GitHub (Mar 3, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/455
I'm currently trying to send emails to mailpit from my Spring Boot app. Internally it uses JavaMail. It seems that it cannot connect to the mailpit SMPT server.
Is there any known issue with Spring Boot or JavaMail using together with mailpit? Sending mails via command line is working and I see log messages about it. But when trying to connect from Spring Boot there are no log messages at all, also in verbose mode.
These are the Spring Boot properties:
This I get in the Java stack trace:
@axllent commented on GitHub (Mar 3, 2025):
I am not aware of any issues, however I have no experience with Spring Boot / JavaMail.
Have you tried running Mailpit in verbose mode to see if the client is even connecting?
@twiedow commented on GitHub (Mar 3, 2025):
Yes, I tried in verbose mode. Unfortunately nothing is logged at all, but I guess the problem lies in the JavaMail client and the way it creates a socket connection to the SMPT server.
I hoped that you might know which properties I might have to set to get the JavaMail client running.
Thanks anyway and thanks for this great project.
@axllent commented on GitHub (Mar 3, 2025):
I googled "Spring Boot and Mailpit" and I can see several articles of how to set it up, so it definitely does work. I strongly suspect it's a configuration issue on your Spring Boot end. It would be great if you could leave a comment here (once you have found the solution) for reference. I'll close this issue as it's not a Mailpit issue. Thanks.