Esempio n. 1
0
 internal static Site.MailMessage FromTemplate(IMailTemplate mailTemplate, UserProfile userProfile)
 {
     return new TestMailMessage
     {
         To = new MailAddress(userProfile.EmailAddress, userProfile.Name),
         From = new MailAddress("*****@*****.**", "DDD East Anglia"),
         Subject = mailTemplate.RenderSubjectLine(),
         Body = mailTemplate.RenderBody()
     };
 }