dimanche 27 mars 2016

SES Email not verified for "to" field in Laravel

I have:

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');
    });

When sending using AWS SES I get:

Error executing "SendRawEmail" on "http://ift.tt/LtGXLE"; AWS HTTP error: Client error: `POST http://ift.tt/LtGXLE` resulted in a `400 Bad Request` response:
<ErrorResponse xmlns="http://ift.tt/1vMoAG1">
<Error>
<Type>Sender</Type>
<Code>MessageReje (truncated...)
MessageRejected (client): Email address is not verified. - <ErrorResponse xmlns="http://ift.tt/1vMoAG1">
<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.

If I do:

...
], 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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire