php-aws-ses
php-aws-ses copied to clipboard
Warning ERROR from AWS SES
I'm getting this error... do you know why?
Warning: SimpleEmailService::sendEmail(): Sender - SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. Do I need to set up port number?
CODE:
$region_endpoint = SimpleEmailService::AWS_US_EAST_1;
$ses = new SimpleEmailService('AxxxxxxxxxxxxxxxxxxxxM', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
$region_endpoint);
print_r($ses->sendEmail($m));
Best regards
Same here. Have tried:
- New access key and secret
- Different region
Still return the same error.
Found the issue: Got special character in my Access key, need to escape it.
Stackoverflow link for reference --> https://stackoverflow.com/questions/30518899/amazon-s3-how-to-fix-the-request-signature-we-calculated-does-not-match-the-s