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

Email Send exception while calling the /registration API

Scheduled Pinned Locked Moved
General Discussion
email registrations user creation verification
1
1
1.2k
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.
  • A
    apeksha.barhanpur
    last edited by 23 Mar 2022, 23:25

    Hi,

    We are calling the /api/user/registration API to create and register a new user. Our requirement is that we want to send an email verification first to the user, only after the user clicks on the link and verifies the email then we would like the user to be verified in FusioanAuth.

    Based on the API documentation it states that when we make a request to this API and if the "skipVerification" is set to default with is "false" it should send an email verification to the newly created user. And then the user should get an email.

    Though the call is successful we are getting the following error within the event logs while sending the email.

    Async Email Send exception occurred.

    Template Id: 0e107c44-a3de-4607-b51c-cd797463ce3a
    Template Name: [FusionAuth Default] Email Verification
    Tenant Id: 07448f27-ca36-9612-8b9a-bce2e7137351
    Addressed to: apekshagb@gmail.com

    Cause:
    javax.mail.MessagingException : Message: Could not connect to SMTP host: 127.0.0.1, port: 1025

    I did try to use an external SMTP server as mailcatcher but that didn't work either. Are we missing any configuration or we need to call a different API?

    Regards
    Apeksha

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post