Some reminders for how to configure email via a rails application.
Watch this:
http://railscasts.com/episodes/274-remember-me-reset-password
Add this:
production.rb
config.action_mailer.delivery_method = :smtp config.action_mailer.raise_delivery_errors = true config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => 'foo.com', :user_name => 'foo@bar.com', :password => 'xxx', :authentication => 'plain', :enable_starttls_auto => true } config.action_mailer.default_url_options = { :host => "foo.com" }
And ignore the Heroku blog post about emailing via gmail.
Links that help
http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration-for-gmail
Tips
– restart prod server
Sep 12, 2012 @ 22:36:48
Reblogged this on My Corner of the Web and commented:
Nice, short and sweet.
Sep 13, 2012 @ 17:11:34
Reblogged this on Sutoprise Avenue, A SutoCom Source.