Esempio n. 1
0
 /// <summary>
 /// Sends the personal report to each user having some old pending changes.
 /// </summary>
 private void ReportToUsers()
 {
     foreach (var group in OldCheckouts.Where(group => group.Key.HasEmail))
     {
         XDocument data = XmlExporter.CreateDocument(XmlExporter.ExportPendingChangesGroup(group));
         m_mailGateway.SendMessage(
             new MailAddress(((RegisteredUserInfo)group.Key).EmailAddress, group.Key.DisplayName),
             Resources.ReportToUsersMailSubject,
             TemplateEngine.GetProcessedString("UserReport.xslt", XsltArguments, data));
     }
 }