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

Email Template update #7723


User avatar
0
Cellofane_admin created

Hi Team,

Im new .net core technology.

I maded some chnages in email template, now i want push only that file or reltaed dll. I verifed the the production deployment files i didnt find the emailtemplate ( default.html), could you please tell me how to update this as patch ?

Thanks, Ganesh P.


4 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    default.html is the Embedded resource. It exists in MyCompanyName.AbpZeroTemplate.Core.dll, so you can't find it in the file system.

    You can modify the EmailTemplateProvider class to read the template from the file system. (Remember to clear the cache when the template is updated)

  • User Avatar
    0
    Cellofane_admin created

    Hi @maliming,

    Thanks for the quick response.

    i added some extra mail content in existing default.html file. So i want to push that chnage only to production.

    FYI.

    The given snippet code is under cellfone.core project so its enough to update only "cellfone.core.dll" to apply latest tempalte chages ?

    Tahnks, Ganehs P.

  • User Avatar
    0
    maliming created
    Support Team

    I am not sure if the dll file can be replaced while the application is running. And the template already exists in the cache. As shown in the above code. Maybe it won't work.

  • User Avatar
    0
    Cellofane_admin created

    I deployed the dll by stopping the app insatnce at that moment.

    Its working as expected.

    Thanks.