skoruba/IdentityServer4.Admin

Email templates

Open

#185 geöffnet am 21. Feb. 2019

Auf GitHub ansehen
 (4 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C# (1.125 Forks)batch import
enhancementhelp wantedquestion

Repository-Metriken

Stars
 (3.486 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Hello community, question for you.

Right now we're using template saved in AccountController.resx:

Name Value
ConfirmEmailBody Please confirm your account by <a href='{0}'>clicking here</a>.
ResetPasswordBody Please reset your password by <a href='{0}'>clicking here</a>.

And we fill it with generated links just before passing it to IEmailSender:

Task SendEmailAsync(string email, string subject, string htmlMessage)

But probably will need to find solution that will allow admins to use email templates. Is there a good solution for templating emails that you know?

Currently I'm considering adding to AccountController.resx project file as a resource which will be a plain html file with {0} for putting links and customizable info in. Let us know if you have any suggestions in this matter.

Contributor Guide