使用AWS SES smtp和meteor发送电子邮件

时间:2016-05-26 04:06:00

标签: meteor meteorite meteor-accounts

我正在尝试使用流星使用aws ses发送电子邮件。 我在服务器端的代码是:

import { Meteor } from 'meteor/meteor';
if(Meteor.isServer) {
Meteor.startup(function() {  
process.env.MAIL_URL="smtp://username:password@email-smtp.us-east-1.amazonaws.com:465"; 
Accounts.emailTemplates.from='abc@abc.com';
Accounts.emailTemplates.sitename='abc'; 
Accounts.emailTemplates.resetPassword.subject = function (user) {   
return "Password reset email" ;
};  
});
}

以下是错误:

enter image description here

我已验证发件人电子邮件ID。

0 个答案:

没有答案