Unable to send email via JavaMailCan't send command to SMTP host
-
Stuck configuring email settings for my default tenant, using Microsoft365. Topic title is the error message I get when attempting to send test email. See screengrab:
Found something perhaps similar in openkm forums:
https://forum.openkm.com/viewtopic.php?t=22215?
-
Can you try connecting to office 365 to send mail using https://jetmore.org/john/code/swaks/ ?
I find that to be helpful to debug smtp issues.
-
@dan Thanks, Dan. Is STARTTLS enabled in FusionAuth JavaMail?
-
Yes, if you enable TLS for the email configuration,
mail.smtp.starttls.enable
is set to true.Here's more about the javamail config (which I expect you are already familiar with, just adding for completeness): https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html
-
Is this "the" A-aron!!!! Howdy sir!
When you set
Security
toTLS
in the FusionAuth UI, we setmail.smtp.starttls.enable=true
which tells the Java Mail API to useSTARTTLS
.In most cases our SMTP configuration will be adequate, if you find additional configuration required that is available via the Java Mail API that @dan posted, these can be added in the Tenant advanced configuration (
Tenant > Advanced > SMTP Settings
) using theAdditional properties
field. This field takes key value pairs as defined by the Java Mail API.Let us know if that still doesn't work, and we can go from there.
-
'Tis I indeed! Continuing my signature moves of knowing juuuuuust enough to be dangerous to myself and others LOL. I'm checking the settings now, thanks to you and Dan for the support!
-