我們使用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