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.alert = true
|
||||||
#Bullet.console = true
|
#Bullet.console = true
|
||||||
#Bullet.bullet_logger = true
|
#Bullet.bullet_logger = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user