FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    SMTP Fails, no debug details

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    3
    6
    1.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      support 0
      last edited by support 0

      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
      
      S joshuaJ 2 Replies Last reply Reply Quote 0
      • S
        support 0 @support 0
        last edited by

        @dan any help on this? Been a week and still the same issue.

        The logs don't show any debug data.

        1 Reply Last reply Reply Quote 0
        • joshuaJ
          joshua @support 0
          last edited by joshua

          @support-0

          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

          https://fusionauth.io/community/forum/topic/1586/unable-to-send-email-via-javamail-prime-messaging-exception/6?_=1664829841078

          Thanks,
          Josh

          S 1 Reply Last reply Reply Quote 0
          • S
            support 0 @joshua
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • joshuaJ
              joshua
              last edited by

              @support-0

              Thanks for the additional feedback.

              It sounds like your issue might be related to this thread?

              • https://fusionauth.io/community/forum/topic/490/unable-to-send-email-via-javamailcan-t-send-command-to-smtp-host

              To note, you can certainly log an issue if you feel like debug information is missing or could be more verbose.

              • https://github.com/FusionAuth/fusionauth-issues/issues/new/choose

              Thanks,
              Josh

              danD 1 Reply Last reply Reply Quote 0
              • danD
                dan @joshua
                last edited by

                @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

                --
                FusionAuth - Auth for devs, built by devs.
                https://fusionauth.io

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post