我们使用Amazon SES发送电子邮件,它表示我们的最大发送速率是每秒5个。亚马逊SES最大发送速率
我找不到的是如果我们每秒发送超过5次会发生什么?他们排队还是被拒绝?
我们有一个超过1000人的邮件列表,他们都试图一次全部发送(并且我们被批准使用亚马逊SES用于此目的)。
这里是我用来发送电子邮件的代码:
namespace Amazon
{
public class Emailer
{
/// <summary>
/// Send an email using the Amazon SES service
/// </summary>
public static void SendEmail(String from, String To, String Subject, String HTML = null, String emailReplyTo = null, String returnPath = null)
{
try
{
List<String> to
= To
.Replace(", ", ",")
.Split(',')
.ToList();
var destination = new Destination();
destination.WithToAddresses(to);
var subject = new Content();
subject.WithCharset("UTF-8");
subject.WithData(Subject);
var html = new Content();
html.WithCharset("UTF-8");
html.WithData(HTML);
var body = new Body();
body.WithHtml(html);
var message = new Message();
message.WithBody(body);
message.WithSubject(subject);
var ses = AWSClientFactory.CreateAmazonSimpleEmailServiceClient("xxx", "xxx");
var request = new SendEmailRequest();
request.WithDestination(destination);
request.WithMessage(message);
request.WithSource(from);
if (emailReplyTo != null)
{
List<String> replyto
= emailReplyTo
.Replace(", ", ",")
.Split(',')
.ToList();
request.WithReplyToAddresses(replyto);
}
if (returnPath != null)
request.WithReturnPath(returnPath);
SendEmailResponse response = ses.SendEmail(request);
SendEmailResult result = response.SendEmailResult;
}
catch (Exception e)
{
}
}
}
}
你能告诉你在哪里找到这个信息吗? – MatteoSp 2013-04-08 12:34:20
不,他们没有。阅读此:http://sesblog.amazon.com/post/Tx8YGT0YZ9SQLD/What-Happens-When-You-Reach-Your-Sending-Limits – cawecoy 2013-06-12 23:04:25
他们绝对不排队他们,你会得到一个错误信息抛出如果你超过最大发送速率.... – 2013-07-19 16:46:22