I'm trying to get @Askhat's tarang:email-ses Meteor package working with SES.
It's not working.
I have the following setup, I've set up the AWS access key ID and secret access key and use it here:
Meteor.startup(function () {
Email.configSES({
AWSAccessKeyID: 'access-key',
AWSSecretKey: 'secret-key'
});
});
To make sure I'm sending from a verified sender SES address:
Accounts.emailTemplates.from = 'Domain Name <support@domain-name.com>';
Then in a Meteor method, I create a new user and send and enrollment email like so (this works if I deploy to meteor.com, without the Accounts.emailTemplates.from of course):
if (Meteor.user() && adminUser(this.userId)) {
var accountId = Accounts.createUser({
'username': doc.name,
'email': doc.email
});
Accounts.sendEnrollmentEmail(accountId);
}
Am I missing setting this up? I shouldn't need to set up SMTP on AWS (I'm running in a EC2 instance)?
Is the code to set things up for the email-ses package correct?
Aucun commentaire:
Enregistrer un commentaire