我们使用Amazon发送电子邮件,它说我们的最大发送速率是每秒5次。
我无法找到的是,如果我们每秒发送超过5次,会发生什么?,它们是排队的还是被拒绝的?
我们有一个邮件列表,有超过1,000人在上面,他们都试图一次发送全部(我们被批准使用Amazon来实现这个目的)。
下面是我用来发送电子邮件的代码:
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)
{
}
}
}
}
发布于 2012-03-28 16:11:10
后来我发现答案是他们被拒绝了。
发布于 2013-02-27 07:17:40
我认为,如果我们试图每秒发送更多消息,那么请求将被拒绝,将超过允许的限制。
我在SES博客http://sesblog.amazon.com/post/TxKR75VKOYDS60/How-to-handle-a-quot-Throttling-Maximum-sending-rate-exceeded-quot-error上找到了这个
当您调用Amazon的速度快于您分配的最大发送速率时,Amazon将以“节流-最高发送速率超过”错误的方式拒绝超出限制请求的。
“节流-最大发送速率超过”错误是可检索的。此错误与Amazon返回的其他错误不同,例如从未经验证的电子邮件地址发送或发送到黑名单中的电子邮件地址。这些错误表示请求不会以其当前的形式被接受。--被拒绝的带有“节流”错误的请求可以在以后重新尝试,并且很可能成功。
如果他们排队请求,这将是一个很好的选择,但我们的经验是,他们没有。请让我知道,如果我在这里有什么问题。
发布于 2019-07-30 00:22:35
如果你试图在达到每日发送配额后发送电子邮件(在24小时内你可以发送的最大邮件数量)或
你的最大发送速率(你每秒可以发送的最大邮件数量),则Amazon会删除邮件,而不会尝试重新发送。
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/reach-sending-limits.html
我被困在这种情况下,在寻找最好的解决办法的路上。
https://stackoverflow.com/questions/9558611
复制相似问题