static void Main(string[] args) { var repeater = new EmailRepeater(); var emailRequest = new EmailRequest { AppId = "801", CC = "", Content = "测试123", Subject = "测试123", ToAddr = "*****@*****.**" }; var emailResult = repeater.SendEmail(emailRequest); Console.WriteLine("EmailId:{0}", emailResult.EmailId); Console.WriteLine("Success:{0}", emailResult.Success); Console.WriteLine("ErrMsg:{0}", emailResult.ErrMsg); Console.ReadKey(); }
public EmailResponse SendEmail(EmailRequest emailRequest) { var emailRepeater = new EmailRepeater(); return(emailRepeater.SendEmail(emailRequest)); }