Rails 3/Devise confirmation email server settings
16,963
Solution 1
Devise uses ActionMailer to send emails so you have to configure it. Take a look at this tutorial for an example of setting up ActionMailer. Also if you are using GMail take a look at this question for details on setting up Rails 3 to use GMail.
Solution 2
i was just watching episode 206 of the rail cast and seen the answer there ActionMailer::Base.default_url_options[:host] = 'mydomain.com:8080'
Author by
webo
Updated on June 04, 2022Comments
-
webo almost 2 years
I have a Rails 3 app and I'm using Devise for user authentication. How do I specify an application-wide SMTP server for Devise to use?
I've entered the following into /config/environments/development.rb (Apache2 is set to 8080)
config.action_mailer.default_url_options = { :host => 'mydomain.com:8080' }
Any ideas on how to get outgoing mail to work with Devise and Rails 3?
-
webo over 13 yearsThanks, that worked. Now Devise is throwing up an "unidentified method" on the confirmation url in the email template. I posted something to their Google Group so hopefully that will get solved too.