に "へ" フィールドの検証:SESメールではなく、私が持っている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('[email protected]', 'Subject');
$m->to($email, $name)->subject('Your Booking');
});
AWS SESを使用して送信する私が取得:
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>
マイアドレスとドメインが確認されています。
私が行う場合:
...
], function ($m) use ($name, $email) {
$m->from('[email protected]', 'Subject');
$m->to('[email protected]', $name)->subject('Your Booking');
});
それは完璧に動作しますが、完全に役に立たないです。私は自分のフォームに必要事項を記入のユーザーに電子メールを送ることができるように
は、どのように私はこの作業を取得できますか?
、 'のvar_dump($メール)の出力は何ですか。 '$ m-> to($ email、$ name) - > subject( 'Your Booking');の直前にdie() – Chris
@Chris string '[email protected]'(length = 18) – imperium2335
私はちょうどここで音が出ています - しかし、手動でペーストをコピーすると、2番目の例のようになります:$ m-> to( 'users @ email.com '、$ name) - >件名(' Your Booking ');それは動作しますか? – Chris