Learn More, Pay Less!
Limited Time Offer!
Open Closed

Forgot password email not working #8732


User avatar
0
markusbergkvist created
  • ABP Framework version: v9.0.2

  • UI Type: Blazor Server

  • Database System: EF Core (SQL Server)

  • Tiered (for MVC) or Auth Server Separated (for Angular): no

  • Exception message and full stack trace:

  • Steps to reproduce the issue:

  • Create a new Abp solution with blazor server with multitenancy with working db connection + run dbmigrator

  • Comment out to not use the nullemailsender in debug mode

  • Install Mailkit in the Domain module (Since we get a warning if we try to send a test email without it)

  • Set up valid email credentials(sendgrid in our case) and send a test mail to email address X which is sent and recieved ok

  • Create a new user with the email X

  • Log out and try to use the forgot password function with the new users email, according to the UI an email is sent

  • No email is recieved in the user email X

Do we need to take any extra/other steps for the forgot password function to work since the test email is working fine?

Also, according to the Account Pro docs the module implements email confirmation. We have not gotten this to work either, no confirmation email is sent to the new user(With and without email confirmed box checked). Do we need to implement this ourselves? This also applies to when we register a new tenant, no confirmation email is sent to the admin email address. So if you could explain what we can expect to work out of the box when creating a abp project and what we need to implement ourselves regarding this that would be appriciated! Thanks!


9 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Install Mailkit in the Domain module (Since we get a warning if we try to send a test email without it)

    Did you receive the test email?

  • User Avatar
    0
    markusbergkvist created

    Hi, Without Mailkit installed, no. With MailKit installed, yes.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    I can't reproduce the problem.

    My steps:

    • Create a new project with Blazor server UI
    • Install Volo.Abp.MailKit to the Domain project and add typeof(AbpMailKitModule)
    • Remove context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
    • Add the correct email settings
    • Forget password

  • User Avatar
    0
    markusbergkvist created

    Hi, I have tried to reproduce the error as well, without success. I will continue to try to find the issue why this is happening in our specific project, I will get back to you regarding this if there are any progress. Thanks for your help!

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, I have tried to reproduce the error as well, without success. I will continue to try to find the issue why this is happening in our specific project, I will get back to you regarding this if there are any progress. Thanks for your help!

    Thanks. We will wait for a response from you. Regards.

  • User Avatar
    0
    markusbergkvist created

    While we are working on this, could you please answer what emailing features we can expect work out of the box from the identity module beside the forgot password link email? For instance, should the new user get a "confirm email" on created if we dont check the "Email confirmed" box?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    They are the features of Account pro module.

    • Reset password
    • Confirm email address
    • Email security code

    For instance, should the new user get a "confirm email" on created if we dont check the "Email confirmed" box?

    When you create a new user, you can choose send confirm email or not.

  • User Avatar
    0
    markusbergkvist created

    Hi, thanks for the reply. We did not have the "Send confirmation mail" checkbox:

    After trying different settings we now understand that "Require confirmed email" in Administration/Settings/Identity Management is required to be checked for this feature to be enabled at all, maybe this could be clarified some way, we may do a pull request on this. Thanks again!

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    okay : )

Made with ❤️ on ABP v9.2.0-preview. Updated on February 13, 2025, 10:35