无法在 AWS SES 上发送邮件,电子邮件未验证

Mik*_*ike 4 php amazon-web-services amazon-ses laravel

我正在尝试在 AWS SES 上发送电子邮件。我使用 Laravel 来做到这一点,使用内置Mail方法。

AWS 给了我错误:

Error executing "SendRawEmail" on "https://email.eu-west-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://email.eu-west-1.amazonaws.com` resulted i ?
<ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">\n
  <Error>\n
    <Type>Sender</Type>\n
    <Code>MessageReje (truncated...)\n
 MessageRejected (client): Email address is not verified. The following identities failed the check in region EU-WEST-1: example1@gmail.com - <ErrorResponse x ?
  <Error>\n
    <Type>Sender</Type>\n
    <Code>MessageRejected</Code>\n
    <Message>Email address is not verified. The following identities failed the check in region EU-WEST-1: mgriffiths@gmail.com</Message>\n
  </Error>\n
  <RequestId>645a3241-342f-11e8-8a1c-7ffffe0019e2</RequestId>\n
</ErrorResponse>\n
Run Code Online (Sandbox Code Playgroud)

我理解错误。我尚未验证 example1@gmail.com 地址。但是,那是我要发送到的地址。我的地址把从是noreply@mydomain.com,其中IS在AWS控制台SES验证。

我究竟做错了什么?

我的代码:

Mail::to('example1@gmail.com')->send(new TestMailable());
Run Code Online (Sandbox Code Playgroud)

和:

public function build()
{
    return $this->view('emails.test_email')
        ->subject('Test Email '. time())
        ->from('noreply@mydomain.com');
}
Run Code Online (Sandbox Code Playgroud)

再次重申,noreply@mydomain.com在 AWS 中进行了IS 验证。

Ara*_*nde 7

您可能正在使用沙箱帐户。在这种情况下,甚至需要验证接收器。

在沙箱帐户中应用以下限制

  • 您只能将邮件发送到 Amazon SES 邮箱模拟器以及经过验证的电子邮件地址和域

您需要生产帐户才能发送给未经验证的接收者

有关如何获取生产帐户的详细信息,请参阅移出沙盒帐户