daniel-zahariev / php-aws-ses

PHP classes that interfaces Amazon Simple Email Service
307 stars 100 forks source link

Warning ERROR from AWS SES #90

Open inglesuniversal opened 2 years ago

inglesuniversal commented 2 years ago

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

robotys commented 1 year ago

Same here. Have tried:

  1. New access key and secret
  2. Different region

Still return the same error.

robotys commented 1 year ago

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