node-ses error .

46 views
Skip to first unread message

Anup Panwar

unread,
Sep 19, 2015, 3:08:43 PM9/19/15
to nodejs
Am trying to send email throw node-ses but am getting error ..

{ Type: 'Sender',

  Code: 'InvalidParameterValue',

  Message: 'Missing final \'@domain\'' }



Here is my code 



var ses = require('node-ses')

  , client = ses.createClient({ key: 'secrekey', secret: 'secret });

 

// Give SES the details and let it construct the message for you.  


client.sendEmail({

   to: 'anup.p...@gmail.com'

 , from: 'anup.p...@gmail.com'

 , cc: 'hello'

 , bcc: ['anup.panwar6@.gmail.com']

 , subject: 'greetings'

 , message: 'your goes here'

 , altText: 'plain text'

}, function (err, data, res) {

 if(err){

console.log(err);

}

else{

console.log(data);

}

});

 

can anyone please tell what is the problem.

Ryan Graham

unread,
Sep 19, 2015, 4:01:02 PM9/19/15
to nodejs
You are giving 'hello' as an email address to CC.

~Ryan

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/0f1f3a7d-c362-4342-bdac-95c635eca28b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages