Exemple #1
0
 public void Configure(EmailTemplateConfig config, string acivationHost=null) {
     if (config == EmailTemplateConfig.UserActivation){
         Subject = "User activation";
         Body = string.Format("A new user @Model.User.UserName has been created. To activate the account please click the following link {0}@Model.User.Activation",
                                            acivationHost + "?ua=");
     }
     else{
         Subject = "pass forgotten";
         Body = "We created a temporary password (@Model.Password) for the UserName (@Model.User.UserName). Please login to reset it";
     }
 }
Exemple #2
0
 public void Configure(EmailTemplateConfig config, string acivationHost = null)
 {
     if (config == EmailTemplateConfig.UserActivation)
     {
         Subject = "User activation";
         Body    = $"A new user @Model.User.UserName has been created. To activate the account please click the following link {acivationHost + "?ua="}@Model.User.Activation";
     }
     else
     {
         Subject = "pass forgotten";
         Body    = "We created a temporary password (@Model.Password) for the UserName (@Model.User.UserName). Please login to reset it";
     }
 }