Ref: https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/dotnetv3/SES
在SES中,使用AWS SDK在.NET中发送邮件
var bodyHtml = "This is some HTML body text. and other HTML elements.";
var bodyText = "This is some plain body text.";
var subject = "Sample email from Amazon Simple Email Service";
var messageId = await sesWrapper.SendEmailAsync(toAddresses, ccAddresses,
bccAddresses, bodyHtml, bodyText,
subject, senderAddress);
邮件发送成功并得到最后打印的消息id
关注时出错
问题:
AWS Login for SES 中缺少任何步骤
SES 有一些设置步骤,您是否按照 SES 开发人员指南中的步骤此处添加发送帐户(即使在沙箱中)并启用编程访问?