public static void Main(string[] args) { var filepath = Directory.GetCurrentDirectory(); var file = Path.Combine(filepath, "oauthconfig.json"); AppSettings.ReadConfigurationSettings(file); var name = "Shannon Whalen"; var email = "*****@*****.**"; var body = "Email Body"; var subject = "Email Subject"; SMTPMail.SendMail(body, subject, name, email, name, email); if (Debugger.IsAttached) { Console.WriteLine("Please type any key:"); Console.Read(); } }
public void SendSMTPMail(string to, string cc, string subject, string body, string reply_to, System.Net.Mail.Attachment[] att, string img_path, string tip) { SMTPMail smtp_mail = new SMTPMail(); smtp_mail.SendMail(to, cc, subject, body, reply_to, att, img_path, tip); }