-
Notifications
You must be signed in to change notification settings - Fork 2
/
28-setup-smtp.patch
38 lines (32 loc) · 1.17 KB
/
28-setup-smtp.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
setup-smtp
From: Bryan Larsen <[email protected]>
If your web server has Postfix or Sendmail set up to deliver email
without requiring a password, rails should now be delivering email
upon activation. However, most servers will require some email setup,
so we'll put in a commented block that you can uncomment and adjust if
you have a mail server available:
SHOW_PATCH
---
config/environment.rb | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/config/environment.rb b/config/environment.rb
index d248e6e..0759173 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -40,4 +40,14 @@ Rails::Initializer.run do |config|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
# config.i18n.default_locale = :de
-end
\ No newline at end of file
+end
+
+#ActionMailer::Base.delivery_method = :smtp
+#ActionMailer::Base.smtp_settings = {
+# :address => "smtp.example.com",
+# :port => 25,
+# :domain => "example.com",
+# :authentication => :login,
+# :user_name => "username",
+# :password => "password",
+#}