Rails- Devise- confirmable- confirmation email not received

36 views
Skip to first unread message

Sajeev Zacharias

unread,
Mar 9, 2013, 5:21:38 PM3/9/13
to rubyonra...@googlegroups.com
In an application I use devise authentication. I added confirmable.During sign up, message is that email has been sent. But email is not received in my gmail account. How can I solve this problem. Do I need to add other options as we do with actionmailer such as gmail port address, or sendmail such things. Please help.

Sajeev Zacharias

unread,
Mar 9, 2013, 5:38:22 PM3/9/13
to rubyonra...@googlegroups.com
I am sorry. I found out. I needed to add the following lines to config/environments/development.rb

config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    :enable_starttls_auto => true,
    :address => "smtp.gmail.com",
    :port => 587,
    :domain => "mydomain.com",
    :authentication => :login,
    :user_name => "mye...@mydomain.com",
    :password => "mypass"
  }
Reply all
Reply to author
Forward
0 new messages