php-aws-ses icon indicating copy to clipboard operation
php-aws-ses copied to clipboard

Warning ERROR from AWS SES

Open inglesuniversal opened this issue 3 years ago • 2 comments

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

inglesuniversal avatar Apr 18 '22 17:04 inglesuniversal

Same here. Have tried:

  1. New access key and secret
  2. Different region

Still return the same error.

robotys avatar Sep 21 '22 02:09 robotys

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

robotys avatar Sep 21 '22 02:09 robotys