Amazon SES nodemailer connection failing -


i'm using nodejs nodemailer connect amazon ses email service. appears simple, keep getting error:

"the request signature calculated not match signature provided. check aws secret access key , signing method. consult service documentation details."

i've searched online , people because have space @ end of secrect key or forward slash maybe causing problem. last 1 no longer issue kept creating smtp credentials until there wasn't one. i've created around 10 smtp credentials now, copied , pasted accesskey , secretkey in each time , i'm still getting error. i've tried using http://email-smtp.us-west-2.amazonaws.com , still got same error.

here code:

var nodemailer = require("nodemailer"); var transport = nodemailer.createtransport("ses",  {     awsaccesskeyid: 'akia************',     awssecretkey: 'aqlwf*****************************',     seviceurl: 'http://email-smtp.us-east-1.amazonaws.com' }); nodemailer.sendmail({     transport : transport,     sender : 'some@thing.com' ,     : 'another@address.com',     subject : 'test',     html: '<p> hello world </p>' }, function(error, response) {     if(error){ console.log(error); }        else{ console.log("message sent: " + response.message);} }); 

anyone know else can do?

this happens when use aws smtp credentials. 1 should create aim user , assign policy 1 below it:

{   "version": "2012-10-17",   "statement": [     {       "effect": "allow",       "action": ["ses:sendemail", "ses:sendrawemail"],       "resource": "*"     }   ] } 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -