Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.action_mailer.raise_delivery_errors = true
- config.action_mailer.perform_deliveries = true
- config.action_mailer.default_url_options = { :host => 'mydomain.com' }
- ActionMailer::Base.smtp_settings = {
- :address => "smtp.gmail.com",
- :port => 587,
- :domain => "mydomain.com",
- :user_name => "info",
- :password => "secret",
- :authentication => "plain",
- :enable_starttls_auto => true
- }
- config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
- config.mailer_sender = "info@mydomain.com"
- config.action_mailer.default_url_options = { :host => 'localhost:3000' }
- ActionMailer::Base.smtp_settings = {
- :address => "smtp.gmail.com",
- :port => 587,
- :domain => "gmail.com",
- :user_name => "myinfo@gmail.com",
- :password => "secret",
- :authentication => "plain"
- # :enable_starttls_auto => true # I don't have this, but it should work anyway
- }
- class UserMailer < ActionMailer::Base
- default :from => "myinfo@gmail.com"
- # ...
- end
Add Comment
Please, Sign In to add comment