简体   繁体   English

我可以在开发环境中使用 ActionMailer 发送和接收电子邮件吗?

[英]Can i send and receive emails using ActionMailer in development env.?

I am trying to design a email confirmation but not able to receive emails in my gmail account.我正在尝试设计一个 email 确认,但无法在我的 gmail 帐户中接收电子邮件。 Can anyone help?有人可以帮忙吗?

  1. one-step confirmation in gmail does not work; gmail 一步确认无效;
  2. you must enable 2-step gmail verification and enable app password;您必须启用两步gmail验证并启用应用密码;
  3. dotenv doesn't load the passwords to production - you have to feed heroku in CLI heroku config:set var1=value1, etc. or at the link https://dashboard.heroku.com/apps/ <your_application>/settings (this last tip does not apply to development). dotenv 不会将密码加载到生产环境中 - 您必须在 CLI heroku config:set var1=value1 等中输入 heroku,或者在链接https://dashboard.heroku.com/apps/ <your_application>/settings(这个最后一个提示不适用于开发)。

For a specific trouble, please: a) detail the code and error;具体麻烦请: a) 详细说明代码和错误; or b) make available your public repository in github.或 b) 在 github 中提供您的公共存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM