コード例 #1
0
 public void SendMail()
 {
     var sender = new SmtpMailSender();
     var mail = new IndividualMail
     {
         From = "*****@*****.**",
         To = "*****@*****.**",
         Subject = "mail sender test",
         Body = "mail sender test " + DateTime.Now,
         IsHtml = false,
     };
     sender.SendMail(mail);
 }
コード例 #2
0
ファイル: Main.cs プロジェクト: Cognite-Soft/ARB_2016_V2
 public static Facade CreateFacade()
 {
     var database = new Database();
     var configuration = new Configuration();
     var passwordManager = new PasswordManager(configuration);
     var securityTokenService = new Arb.WebApi.Resource.Sts.SecurityTokenService();
     var mailSender = new SmtpMailSender();
     var mailConfiguration = new MailConfiguration();
     var mailNotifier = new MailNotifier(mailSender, mailConfiguration);
     var documentStore = new SharePointDocumentStore();
     var facade = new Facade(database, configuration, passwordManager, securityTokenService, mailNotifier, documentStore);
     return facade;
 }