Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b7a3ac

Browse files
committed
add production email
1 parent 6bb6918 commit 5b7a3ac

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ group :development do
6060
end
6161

6262
group :assets do
63-
gem 'therubyracer'
63+
gem 'therubyracer', '0.11.3'
6464
end
6565

config/environments/production.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
# Full error reports are disabled and caching is turned on.
1414
config.consider_all_requests_local = false
1515
config.action_controller.perform_caching = true
16+
config.action_mailer.delivery_method = :smtp
17+
config.action_mailer.smtp_settings = {
18+
:address => "smtp.163.com",
19+
:domain => "163.com",
20+
:user_name => "noreplylivoras",
21+
:password => "crackmeplease."
22+
}
1623

1724
# Enable Rack::Cache to put a simple HTTP cache in front of your application
1825
# Add `rack-cache` to your Gemfile before enabling this.
@@ -62,7 +69,7 @@
6269

6370
# Ignore bad email addresses and do not raise email delivery errors.
6471
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
65-
# config.action_mailer.raise_delivery_errors = false
72+
config.action_mailer.raise_delivery_errors = false
6673

6774
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
6875
# the I18n.default_locale when a translation cannot be found).

0 commit comments

Comments
 (0)