发送电子邮件时出现 Amazon SES 错误 MessageRejected

Amazon SES error while sending email MessageRejected

我正在使用 php 通过 Amazon SES 发送电子邮件并使用此 github 库

https://github.com/okamos/php-ses#getting-started

但是当我发送时我收到这个错误 我的电子邮件和域都已验证

     "MessageRejected" ["description"]=> string(134) "Indicates that the action failed, and the message could not be sent. Check the error stack for a description of what caused the error." } 

当我在 aws 中检查这个错误时,我发现了这个

 https://docs.aws.amazon.com/ses/latest/DeveloperGuide/troubleshoot-error-messages.html

这里说
如果您直接调用 Amazon SES API,查询操作将 return 出错。该错误可能是 MessageRejected 或 Amazon Simple Email Service API 参考的常见错误主题中指定的错误之一。

我们哪里遗漏了??

require 'autoload.php';

require 'src/ses.php';


$ses = new SimpleEmailService(
    'xxxxxxxxx',
    'xxxxxxxxxxxx', 
    'us-east-1' 
);


$envelope = new SimpleEmailServiceEnvelope(
    'noreply@xxxxxxxx.com',
    'This is test email',
    'Hello how are you. this is test email'
);


$envelope->addTo('ffffff@hhhhh.com');

$requestId = $ses->sendEmail($envelope);

var_dump($requestId);

为什么我们会收到此错误

当您通过 SES 发送邮件时,尤其是当您发送大量邮件时,最佳做法是使用队列。例如,您可以使用 AWS SQS 通过 SES 发送邮件并避免该问题。