[英]Unable to send mail on AWS SES, email not verified
我正在嘗試在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
我了解錯誤。 我尚未驗證example1@gmail.com地址。 但是,這是我要發送給的地址。 我把從該地址是noreply@mydomain.com,這在AWS SES 控制台驗證。
我究竟做錯了什么?
我的代碼:
Mail::to('example1@gmail.com')->send(new TestMailable());
和:
public function build()
{
return $this->view('emails.test_email')
->subject('Test Email '. time())
->from('noreply@mydomain.com');
}
要重申,請在AWS中驗證noreply@mydomain.com
。
您可能正在使用沙盒帳戶。 在這種情況下,甚至都需要對接收器進行驗證。
在沙箱帳戶中,以下限制適用
您需要生產帳戶才能發送給未經驗證的接收者
有關如何獲取生產帳戶的詳細信息,請參閱移出沙箱帳戶 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.