简体   繁体   English

设计,没有电子邮件

[英]Devise, no E-Mails

I installed devise. 我安装了设计。

I run rails server -e development and set this line in config/environments: 我运行rails server -e development并在config / environments中设置这一行:

config.action_mailer.default_url_options = {:host => 'localhost:3000'}

Devises says: 戴维斯说:

 message with a confirmation link has been sent to your email address. Please open the      link to activate your account.

But I didn't receive any mail. 但我没有收到任何邮件。

What do you think? 你怎么看?

Add these lines to your development.rb file 将这些行添加到development.rb文件中

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => 'baci.lindsaar.net',
  :user_name            => '<username>',
  :password             => '<password>',
  :authentication       => 'plain',
  :enable_starttls_auto => true  }

More info about sending and setting up email here 有关在此处发送和设置电子邮件的详细信息

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

相关问题 使用Mandrill在生产中发送设计电子邮件 - Send Devise E-mails using Mandrill in Production 当我覆盖它的邮件程序时,Devise 正在发送带有空白正文的电子邮件 - Devise is sending e-mails with blank bodies when I override it's mailer 电子邮件未到达-Rails,Heroku,Sendgrid - E-mails not arriving - Rails, Heroku, Sendgrid 如何使用gmail smtp服务发送确认电子邮件,以便在本地开发模式下使用设计进行注册? - How to send confirmation e-mails using gmail smtp service for registration using devise under development mode locally? 如何在 Rails ActionMailbox 中处理转发的电子邮件? - How to handle forwarded e-mails in Rails ActionMailbox? 使用额外的sidekiq服务器时电子邮件中的样式表 - Stylesheets in E-Mails when using extra sidekiq server 如何在动作邮件(Rails)中跟踪弹跳电子邮件 - How to trace Bouncing E-mails in Action mailer (Rails) 在每行的开头插入&gt;以回复电子邮件 - Inserting > at the start of each line in reply e-mails 在Rails 4管理面板中发送/接收电子邮件的宝石 - Gem for Send/ Receive e-mails in Rails 4 admin panel 邮箱不发送电子邮件:参数数量错误(1表示0) - Mailbox not sending e-mails: wrong number of arguments (1 for 0)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM