尝试发送电子邮件一直给我超时错误:
调用方法' sendEmail'错误:连接ETIMEDOUT
MAIL_URL
变量在server/lib
文件夹中设置如下:
Meteor.startup(function () {
var user = "username@sandbox************.mailgun.org",
pass = "***********",
host = "smtp.mailgun.org",
port = 25,
url = "smtp://" + user + ":" + pass + "@" + host + ":" + port + "/";
process.env.MAIL_URL = url;
});