Base solution for your next web application
Open Closed

Default Email Template for Account Activation: Logo Image #3037


User avatar
0
tteoh created

Dear Support,

The standard default.html for constructing user account acivation email uses "absolute path" to logo image (which is currently set to <a class="postlink" href="http://aspnetzero.com/Images/Logos/logo.png">http://aspnetzero.com/Images/Logos/logo.png</a>).

I had tried to use "relative path" but i didn't work.

Please kindly advice.

Thanks. /Tommy


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You also need to provide a full logo url because it will be accessed outside of your web application.

    Thanks.

  • User Avatar
    0
    tteoh created

    Understood. But I m hoping relative path can be used instead of absolute path. For example, "/Images/Logos/logo.png". However, this was not translated when viewing in email client.

    Without this ability, prior to deploying from staging environment to live environment, have to change the image path and recompile the solution.

    Hope the above further clarifed the intention.

    Thanks. /tommy

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I understand your point but I couldn't find a good way for using a relative path. If you have an idea, I will be happy to hear.

    Thanks.

  • User Avatar
    0
    tteoh created

    <cite>ismcagdas: </cite> Hi,

    I understand your point but I couldn't find a good way for using a relative path. If you have an idea, I will be happy to hear.

    Thanks.

    Hi,

    Am I right to say that using the current implementation does not automatically translate the "relative path" to actual path when sending the email?

    If so, I guess the URL path translation has to be manually done during the replacement of HEADER and BODY. For example, insert a new token called ROOTPATH and replace it after correct site root path.

    Agreed?

    /tommy

  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    We will develop this feature in next version. I opened an issue about this. <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/167">https://github.com/aspnetzero/aspnet-ze ... issues/167</a>