mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Email with gmail in production
This commit is contained in:
@@ -32,5 +32,9 @@ Wrestling::Application.configure do
|
||||
#Bullet.alert = true
|
||||
#Bullet.console = true
|
||||
#Bullet.bullet_logger = true
|
||||
|
||||
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -97,14 +97,17 @@ Wrestling::Application.configure do
|
||||
#Added by me to force SSL in production
|
||||
config.force_ssl = true
|
||||
|
||||
#Mail
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
#MAIL
|
||||
config.action_mailer.smtp_settings = {
|
||||
:address => "localhost",
|
||||
:port => 25,
|
||||
:domain => "wrestlingdev.com",
|
||||
:address => "smtp.gmail.com",
|
||||
:port => 587,
|
||||
:domain => "gmail.com",
|
||||
:user_name => "jacob.wimer@gmail.com",
|
||||
:password => ENV["WRESTLINGDEV_EMAIL_PWD"],
|
||||
:authentication => :plain,
|
||||
:enable_starttls_auto => true
|
||||
}
|
||||
config.action_mailer.perform_deliveries = true
|
||||
#Devise needs origin of email
|
||||
config.action_mailer.default_url_options = { :host => 'wrestlingdev.com' }
|
||||
Rails.application.routes.default_url_options[:host] = 'wrestlingdev.com'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user