Request to AWS SES API failed. Reason: Error executing "SendRawEmail" in Laravel 10
I am trying to send emails with AWS SES. I followed the Laravel official doc and configured the application. but when I tried to send an email I got the following error. I was using ses as MAIL_MAILER at this time.
I assigned AmazonSESFullAccess and AmazonSNSFullAccess permissions directly to my IAM user. I was using aws/aws-sdk-php package with my Laravel application but while trying to solve the issue I tried with aws/aws-sdk-php-laravel package too. But the error remains the same.
Then I generated an SMTP access credential and used it for sending emails. This time it worked.
I want to use the SES config for mail sending with Laravel. It would be really helpful if you please help me to find the issue and solve it.
Open the php.ini file and add the following lines. Here C:\wamp64\php\ssl\cacert.pem is the path of the certificate file. I was using wamp if you are using xampp or something similar, this path might be different.