meteor - 为什么我的带有帐户包的 Meteor 应用程序没有发送验证电子邮件?

标签 meteor user-accounts meteorite email-verification

我正在制作一个meteor 应用程序,并且我添加了mrt accounts-password 包以及mrt accounts-ui-bootstrap-dropdown。

我添加了登录按钮,以便用户可以创建一个帐户,并且效果很好。我正在使用所有默认值。

在服务器上我有代码:

Accounts.config({
  sendVerificationEmail: true,
  forbidClientAccountCreation: false
});

当我创建一个新帐户时,服务器控制台会打印:
I20130821-18:31:42.105(-4)? ====== BEGIN MAIL #0 ======
I20130821-18:31:42.106(-4)? MIME-Version: 1.0
I20130821-18:31:42.107(-4)? From: "Meteor Accounts" <no-reply@meteor.com>
I20130821-18:31:42.108(-4)? To: hidden@hidden.edu
I20130821-18:31:42.108(-4)? Subject: How to verify email address on localhost:3000
I20130821-18:31:42.109(-4)? Content-Type: text/plain; charset=utf-8
I20130821-18:31:42.109(-4)? Content-Transfer-Encoding: quoted-printable
I20130821-18:31:42.109(-4)? Hello,
I20130821-18:31:42.110(-4)? To verify your account email, simply click the link below.
I20130821-18:31:42.110(-4)? http://localhost:3000/#/verify-email/C2vJeaDLeMkkWmcRY
I20130821-18:31:42.111(-4)? Thanks.
I20130821-18:31:42.111(-4)? ====== END MAIL #0 ======

所以看起来它从服务器发送电子邮件,但我从未在收件箱中收到验证电子邮件。而且我试了很多次,已经一个多小时了!我还检查了我的垃圾邮件文件夹。是什么赋予了?

提前致谢

最佳答案

看这里:http://docs.meteor.com/#email

If MAIL_URL is not set (eg, when running your application locally), Email.send outputs the message to standard output instead



像 Meteor 这样的 Web 服务器不能自己发送电子邮件,他们需要一个 SMTP 服务器来做到这一点。你需要设置一个并用MAIL_URL设置它变量。

关于meteor - 为什么我的带有帐户包的 Meteor 应用程序没有发送验证电子邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18368877/

相关文章:

node.js - Google App Engine 中的 session 关联性

javascript - Meteor + CSS 无法正确加载

MySQL 用户和所有权限

javascript - meteor JS : Client not getting data from Mongo DB

javascript - 如果出现错误,如何重新编写代码部分而不重写它?

javascript - Mongodb 从 Mycollection.find().count() 返回错误;

sql-server - SQL Server 用户太多

php - 最简单、最小的PHP账户系统

meteor - 在meteor.user中使用hashedToken有什么用

javascript - 如何在 Handlebars 模板中添加 console.log() JavaScript 逻辑?