发送电子邮件超时

时间:2015-08-02 13:11:59

标签: meteor mailgun

尝试发送电子邮件一直给我超时错误:

  

调用方法' 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;
});

1 个答案:

答案 0 :(得分:2)

您的ISP很可能阻止port 25阻止您发送垃圾邮件。请参阅here以供参考。像587这样的其他东西也可以。请参阅此example