laravelamazon-web-servicesamazon-seslaravel-vapor

Laravel AWS SES mails not received


The issue I have with AWS SES is that on the password reset page (for example) after I send the request I get a successfully sent mail response, but I don't receive that email in my inbox.

Success message

Since this is my first time working with AWS at all, I guess it is some AWS configuration setup issue.

So, I have verified my email at the AWS console and they have moved me out of the sandbox. I have implemented the AWS-SDK package in my laravel app, and in my .env I have this.

ENV

MAIL_MAILER=ses
AWS_ACCESS_KEY_ID="my_iam_aws_access_key"
AWS_SECRET_ACCESS_KEY="my_iam_aws_secret_access_key"

In my laravel vapor dashboard environment, I have only fields for MAIL_FROM_NAME and MAIL_FROM_ADDRESS Also, I have included the contract "CanResetPassword" to my User model.

Also, there are not any errors in the logs, in vapor-ui, or in the AWS console.

Are there any more suggestions on what could I check or do?

Thanks :)


Solution

  • For AWS SES .Try this one in .env file MAIL_HOST come from SES dasboard/section in which region you have implemented SES.Also along to create smtp you have to create IAM User with fullAwsSESAccess permission.

    MAIL_HOST=email-smtp.us-east-1.amazonaws.com
    MAIL_PORT=587
    MAIL_USERNAME=
    MAIL_PASSWORD=
    MAIL_ENCRYPTION=tls
    MAIL_FROM_ADDRESS=
    

    enter image description here