public void SendMail() { IAppConfig mailConfig = new MailAppConfig("apppid", "appkey"); MailXSend submail = new MailXSend(mailConfig); submail.AddTo("*****@*****.**", "joe"); submail.SetSender("*****@*****.**", "leo"); submail.SetProject("7pfhZ3"); submail.AddHeaders("X-Accept", "zh-cn"); submail.AddHeaders("X-Mailer", "leo App"); string resultMessge = string.Empty; submail.XSend(out resultMessge); Console.WriteLine(resultMessge); }
public void SendMail() { IAppConfig mailConfig = new MailAppConfig("10050", "2be0927e1628e16e1ccdb6f5800caac9"); MailXSend submail = new MailXSend(mailConfig); submail.AddTo("*****@*****.**", "joe"); submail.SetSender("*****@*****.**", "leo"); submail.SetProject("7pfhZ3"); submail.AddHeaders("X-Accept", "zh-cn"); submail.AddHeaders("X-Mailer", "leo App"); string resultMessge = string.Empty; if (submail.XSend(out resultMessge) == false) { Console.WriteLine(resultMessge); } }