【发布时间】:2012-10-09 12:28:30
【问题描述】:
我正在尝试使用 Amazon SES Web 服务发送群发邮件。但是,我在 .NET 中没有得到这样的参考。谁能帮帮我?
【问题讨论】:
-
我正在.net中寻找代码
我正在尝试使用 Amazon SES Web 服务发送群发邮件。但是,我在 .NET 中没有得到这样的参考。谁能帮帮我?
【问题讨论】:
AmazonSimpleEmailServiceConfig amConfig = new AmazonSimpleEmailServiceConfig();
amConfig.UseSecureStringForAwsSecretKey = false;
AmazonSimpleEmailServiceClient amzClient = new
AmazonSimpleEmailServiceClient(ConfigurationManager.AppSettings["AKID"].ToString(),
ConfigurationManager.AppSettings["Secret"].ToString(), amConfig);
【讨论】:
SendEmailRequest ser = new SendEmailRequest("VERIFIED_EMAIL_HERE", dest, message);
SendEmailResponse seResponse = amzClient.SendEmail(ser);
SendEmailResult seResult = seResponse.SendEmailResult;
(包含的文本是为了满足 SO 的最低非空间要求)
【讨论】: