I\'m building a email list for a student organization at my University. The organization has around 6000 members and to avoid costs I\'ve received permission to use the scho
Create a file setup_mail.rb
in the folder config/initializers/
and put the code:-
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.smtp_settings = {
:address => "smtp.school.edu",
:domain => 'myapp.herokuapp.com',
:port => 25,
:user_name => "account@school.edu",
:password => "mypassword",
:authentication => :plain,
:enable_starttls_auto => true
}
ActionMailer::Base.default_url_options[:host] = "myapp.herokuapp.com"