send email using AWS SES smtp with meteor

171 views Asked by At

I am trying out to send email using aws ses using meteor. My code at server end is:

import { Meteor } from 'meteor/meteor';
if(Meteor.isServer) {
Meteor.startup(function() {  
process.env.MAIL_URL="smtp://username:[email protected]:465"; 
Accounts.emailTemplates.from='[email protected]';
Accounts.emailTemplates.sitename='abc'; 
Accounts.emailTemplates.resetPassword.subject = function (user) {   
return "Password reset email" ;
};  
});
}

below is the error:

enter image description here

I have verified the sender email id.

0

There are 0 answers