Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

E-mail - activation / password reset - localhost link #7719


User avatar
0
deltavision created

Hi,

using ANZ 7.1 - Core, MVC / jQuery.

When sending mail - the link for activation / reset passwork is build with localhost:

http://localhost:62114/Account/...

localhost:62114 should be replaced with actual domain.

what is wrong? something I should setup :-)


5 Answer(s)
  • User Avatar
    0
    deltavision created

    found the problem.

    web.config - ASTNETCORE_ENVIRONMENT was set to Development:

      <environmentVariables>
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
    

    changed to Production

    <environmentVariables>
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
    

    for correct use of AppSettings.Production.json

    ... Next question - there is an image "link" in top left corner of activation / reset password mail - why is it red-x ? Something else I should be aware of?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi deltavision

    This image url is calculated here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Net/Emailing/EmailTemplateProvider.cs#L39. Could you check it this link works when you paste it in browser to view it ?

  • User Avatar
    0
    deltavision created

    Hi ismcagdas

    that works - it says something like:

    https://WEBSITE/TenantCustomization/GetTenantLogo?skin=light&tenantId=2

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @deltavision

    Then, probably email provider blocks the url for displaying the image.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please open a new issue if you are still having this problem.