Example #1
0
File: Dszy.cs Project: miryuan/DSZY
 private async Task SendInfoMailAsync()
 {
     LogFileHelper.WriteLog("SendInfoMailAsync");
     var    subject = "InfoNow";
     string content = ProcessInfo();
     await EMailHelper.SendEMailAsync(subject, content, new MailboxAddress[] {
         new MailboxAddress("*****@*****.**")
     });
 }
Example #2
0
File: Dszy.cs Project: miryuan/DSZY
 private async Task SendShutDownMailAsync()
 {
     LogFileHelper.WriteLog("SendShutDownMailAsync");
     var    subject = "ShutDown";
     string content = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " ShutDown";
     await EMailHelper.SendEMailAsync(subject, content, new MailboxAddress[] {
         new MailboxAddress("*****@*****.**")
     });
 }
Example #3
0
File: Dszy.cs Project: miryuan/DSZY
 private async Task SendWakeupMailAsync()
 {
     LogFileHelper.WriteLog("SendWakeupMailAsync");
     isSendStartMail = true;
     var subject = "Wakeup";
     var content = MachineInfo();
     await EMailHelper.SendEMailAsync(subject, content, new MailboxAddress[] {
         new MailboxAddress("*****@*****.**")
     });
 }