SMTP Fails, no debug details
-
Hi FusionAuth,
I'm trying to use the hosted service but adding SMTP to my tenant to test accounts fails so I can verify email addresses.
I have a product smtp configuration via smtp.office365.com (using copy and paste to make sure no human errors).
- When I try to send a test message I get:
Unable to send email via JavaMail Prime Messaging Exception
- I use debug and only get that the debug is activated:
DEBUG: setDebug: Jakarta Mail version 2.0.1 DEBUG: setDebug: Jakarta Mail version 2.0.1 DEBUG: setDebug: Jakarta Mail version 2.0.1 DEBUG: setDebug: Jakarta Mail version 2.0.1
- when I attempt to send a verification email I see the following error in the event log:
Async Email Send exception occurred. Template Id: ########-####-####-####-############ Template Name: [FusionAuth Default] Registration Verification Tenant Id: ########-####-####-####-############ Addressed to: First Last <first.last@host.com> // obfuscated for support Cause: jakarta.mail.MessagingException : Message: Can't send command to SMTP host
-
@dan any help on this? Been a week and still the same issue.
The logs don't show any debug data.
-
Sometimes http://smtp.office365.com/ and other similar providers do not allow for the sending of transactional emails. I would recommend testing your email integration with SWAKS to provide you with more feedback to determine where the integration is failing.
If SWAK fails, then this issue might lie with your configuration/provider (SWAKS removes FusionAuth from the process to enhance troubleshooting)
Some other tips can be found below
Thanks,
Josh -
@joshua thanks for the reply.
I've already tested before reporting the issue, sorry I should have clarified that. SWAKS reported zero issues and the email was received as expected.
I use the exact same settings in other systems every single day. Exact same address and config.
I just retested by re-pasting all the details in (which I copied out into SWAKS when testing) and the email was sent successfully.
You may want to check on your debug log capabilities. There is zero way to debug this and just wastes time and trust.
-
Thanks for the additional feedback.
It sounds like your issue might be related to this thread?
To note, you can certainly log an issue if you feel like debug information is missing or could be more verbose.
Thanks,
Josh -
@support-0 also, what version of FusionAuth are you running? There were some issues with the SMTP debug log that were resolved in 1.37.0: https://fusionauth.io/docs/v1/tech/release-notes#version-1-37-0