Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Heroku actionmailer how to
- module Konkurranceportalen
- class Application < Rails::Application
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration should go into files in config/initializers
- # all .rb files in that directory are automatically loaded.
- config.action_mailer.delivery_method = :smtp
- ActionMailer::Base.smtp_settings = {
- :address => "smtp.mydomain.com",
- :port => 25,
- :user_name => "[email protected]",
- :password => "mypass",
- :authentication => :login
- }
- end
- end
- ActionMailer::Base.smtp_settings = {
- :address => "smtp.sendgrid.net",
- :port => "25",
- :authentication => :plain,
- :user_name => ENV['SENDGRID_USERNAME'],
- :password => ENV['SENDGRID_PASSWORD'],
- :domain => ENV['SENDGRID_DOMAIN']
Advertisement
Add Comment
Please, Sign In to add comment