1
0
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:
2016-01-18 21:32:18 +00:00
parent d2174fb004
commit 8ddb4a50a6
2 changed files with 15 additions and 8 deletions

View File

@@ -32,5 +32,9 @@ Wrestling::Application.configure do
#Bullet.alert = true #Bullet.alert = true
#Bullet.console = true #Bullet.console = true
#Bullet.bullet_logger = true #Bullet.bullet_logger = true
end end
end end

View File

@@ -97,14 +97,17 @@ Wrestling::Application.configure do
#Added by me to force SSL in production #Added by me to force SSL in production
config.force_ssl = true config.force_ssl = true
#Mail #MAIL
config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = {
config.action_mailer.smtp_settings = { :address => "smtp.gmail.com",
:address => "localhost", :port => 587,
:port => 25, :domain => "gmail.com",
:domain => "wrestlingdev.com", :user_name => "jacob.wimer@gmail.com",
:password => ENV["WRESTLINGDEV_EMAIL_PWD"],
:authentication => :plain,
:enable_starttls_auto => true
} }
config.action_mailer.perform_deliveries = true config.action_mailer.perform_deliveries = true
#Devise needs origin of email #Devise needs origin of email
config.action_mailer.default_url_options = { :host => 'wrestlingdev.com' } Rails.application.routes.default_url_options[:host] = 'wrestlingdev.com'
end end