private async Task SendInfoMailAsync() { LogFileHelper.WriteLog("SendInfoMailAsync"); var subject = "InfoNow"; string content = ProcessInfo(); await EMailHelper.SendEMailAsync(subject, content, new MailboxAddress[] { new MailboxAddress("*****@*****.**") }); }
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("*****@*****.**") }); }
private async Task SendWakeupMailAsync() { LogFileHelper.WriteLog("SendWakeupMailAsync"); isSendStartMail = true; var subject = "Wakeup"; var content = MachineInfo(); await EMailHelper.SendEMailAsync(subject, content, new MailboxAddress[] { new MailboxAddress("*****@*****.**") }); }