SES电子邮件未针对“收件人"进行验证Laravel中的字段 [英] SES Email not verified for "to" field in Laravel
问题描述
我有:
Mail::send('emails.booking-confirmation', [
'name' => $name,
'email' => $email,
'tel' => $tel,
'msg' => $msg,
'date' => Carbon::parse($date)->format('l, jS \o\f F, Y \a\t H:ia'),
'service' => $q->service,
'duration' => $q->duration . ' minutes'
], function ($m) use ($name, $email) {
$m->from('myemail@ddress.co.uk', 'Subject');
$m->to($email, $name)->subject('Your Booking');
});
使用AWS SES发送时,我得到:
When sending using AWS SES I get:
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 in a `400 Bad Request` response:
<ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
<Error>
<Type>Sender</Type>
<Code>MessageReje (truncated...)
MessageRejected (client): Email address is not verified. - <ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
<Error>
<Type>Sender</Type>
<Code>MessageRejected</Code>
<Message>Email address is not verified.</Message>
</Error>
<RequestId>8551cf11-f420-11e5-b4ac-bf30e6ff71ee</RequestId>
</ErrorResponse>
我的地址和域已通过验证.
My address and domain are verified.
如果我这样做:
...
], function ($m) use ($name, $email) {
$m->from('myemail@ddress.co.uk', 'Subject');
$m->to('myemail@ddress.co.uk', $name)->subject('Your Booking');
});
它工作正常,但完全没用.
It works perfectly, but is completely useless.
如何使它正常工作,以便我可以向填写我的表格的用户发送电子邮件?
How do I get this working so I can send email to users who fill out my form?
推荐答案
它在抱怨您的To: email
地址未得到验证.看起来您处于SES Sandbox
模式.在将SES帐户更改为production
帐户之前,您还必须验证您的Sender
电子邮件地址.
It is complaining your To: email
address is not verified. Looks like you are in SES Sandbox
mode. Until you change your SES account to production
account, you have to verify your Sender
email address too.
同时测试From
和To
都是您的电子邮件地址(已验证).
When you tested both From
and To
are your email address (which is already verified).
在您的帐户退出Amazon SES沙箱之前,您还必须 验证除收件人以外的每个收件人的电子邮件地址 由Amazon SES邮箱模拟器提供.欲获得更多信息 有关邮箱模拟器的信息,请参阅测试Amazon SES电子邮件发送.为了 有关移出沙箱的更多信息,请参阅移出沙箱. Amazon SES沙盒.
Until your account is out of the Amazon SES sandbox, you must also verify the email address of every recipient except for the recipients provided by the Amazon SES mailbox simulator. For more information about the mailbox simulator, see Testing Amazon SES Email Sending. For more information about moving out of the sandbox, see Moving Out of the Amazon SES Sandbox.
这篇关于SES电子邮件未针对“收件人"进行验证Laravel中的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!