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

    How to Prevent Double Email Issues with FusionAuth's Forgot Password API

    Scheduled Pinned Locked Moved Solved
    Q&A
    messages email
    1
    2
    698
    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.
    • W
      wesley
      last edited by

      We are using the /api/user/forgot-password API for password resets, with sendForgotPasswordEmail set to false since we send our own email. However, users are now receiving two emails: our custom email and a password reset email from FusionAuth using our template. This issue occurs only in our pre-live and production environments, not in the local Dockerized version. What could be causing this?

      1 Reply Last reply Reply Quote 1
      • W
        wesley
        last edited by

        This issue may occur if the Forgot Password email template is still enabled in FusionAuth. To resolve this:

        • Disable the Forgot Password email template at the tenant level:
          Navigate to Tenant > Edit Tenant > Email tab > Template Settings.
          Set the Forgot Password template to Feature Disabled.

        • Check the application-specific settings:
          If you have an application-specific template set up, ensure the Forgot Password template is also disabled under the Application settings.

        • Verify API configuration in the PHP client (if applicable):
          If you’re using the PHP client, ensure sendForgotPasswordEmail is explicitly set to "false" (as a string with quotes), not just false (boolean). This ensures the value is passed correctly.
          These steps should prevent FusionAuth from sending its own Forgot Password email when the API is called, resolving the double-email issue.

        1 Reply Last reply Reply Quote 0
        • W wesley has marked this topic as solved on
        • First post
          Last post