forked from bryanlarsen/agility-gitorial-patches
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path22-setup-smtp.patch
33 lines (28 loc) · 964 Bytes
/
22-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
setup-smtp
From: Bryan Larsen <bryan@larsen.st>
# Setup SMTP
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/initializers/smtp.rb | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 config/initializers/smtp.rb
diff --git a/config/initializers/smtp.rb b/config/initializers/smtp.rb
new file mode 100644
index 0000000..8a487c7
--- /dev/null
+++ b/config/initializers/smtp.rb
@@ -0,0 +1,9 @@
+#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",
+#}