talktome 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -15
- data/lib/talktome/version.rb +1 -1
- data/lib/talktome.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c440231a08054f22280bfdd1181504e4d8165d560abefdde9e47f8c61e1bb8a
|
4
|
+
data.tar.gz: 0b581c1143de1727521e9e1f02a575dfb9d5329ec81760430f9accd5fce7c595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz: '
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0083ac9839d23e92f285c5e9d688083497ce8bc3957d7f1bb6c7fca49534b5c9d4677ccda8171bfd39e55ac16622acbfd46a4ebd654185eba217a5547a9f4c2e'
|
7
|
+
data.tar.gz: 43316252a3c9a47a1b6329d0c3c95aa17de447d2d050834316755c78f02550e07c33f8a7892cfff1e69e51db3a7eae86cedeef7cc98c002a707eaf80f1d32183
|
data/README.md
CHANGED
@@ -87,26 +87,27 @@ The easiest way to configure Talktome is through environment variables. The foll
|
|
87
87
|
ones are supported:
|
88
88
|
|
89
89
|
```
|
90
|
-
TALKTOME_DEBUG
|
90
|
+
TALKTOME_DEBUG when set enables the dumping of sent messages to ./tmp folder
|
91
91
|
|
92
|
-
TALKTOME_EMAIL_DELIVERY
|
93
|
-
TALKTOME_EMAIL_DEFAULT_FROM
|
94
|
-
TALKTOME_EMAIL_DEFAULT_REPLYTO
|
95
|
-
TALKTOME_EMAIL_DEFAULT_TO
|
92
|
+
TALKTOME_EMAIL_DELIVERY smtp, file or test (see ruby Mail library)
|
93
|
+
TALKTOME_EMAIL_DEFAULT_FROM default From: to use for email sending
|
94
|
+
TALKTOME_EMAIL_DEFAULT_REPLYTO default Reply-To: to use for email sending
|
95
|
+
TALKTOME_EMAIL_DEFAULT_TO default To: to use for email sending
|
96
96
|
|
97
|
-
TALKTOME_EMAIL_SUBJECT
|
98
|
-
TALKTOME_EMAIL_FOOTER
|
97
|
+
TALKTOME_EMAIL_SUBJECT Set the subject of the default "contact us" email
|
98
|
+
TALKTOME_EMAIL_FOOTER Set the footer of the default "contact us" email
|
99
99
|
|
100
|
-
TALKTOME_LAYOUTS_FOLDER
|
100
|
+
TALKTOME_LAYOUTS_FOLDER Set the folder to use for messaging layouts
|
101
101
|
|
102
|
-
TALKTOME_SMTP_ADDRESS
|
103
|
-
TALKTOME_SMTP_PORT
|
104
|
-
TALKTOME_SMTP_DOMAIN
|
105
|
-
TALKTOME_SMTP_USER
|
106
|
-
TALKTOME_SMTP_PASSWORD
|
107
|
-
TALKTOME_SMTP_STARTTLS_AUTO
|
102
|
+
TALKTOME_SMTP_ADDRESS host address for smtp sending
|
103
|
+
TALKTOME_SMTP_PORT port of smtp server to use
|
104
|
+
TALKTOME_SMTP_DOMAIN sending domain
|
105
|
+
TALKTOME_SMTP_USER user for smtp authentication
|
106
|
+
TALKTOME_SMTP_PASSWORD password for smtp authentication
|
107
|
+
TALKTOME_SMTP_STARTTLS_AUTO true or false (see ruby Mail library)
|
108
|
+
TALKTOME_SMTP_OPENSSL_VERIFY_MODE none or peer (see ruby Mail library). Defaults to peer.
|
108
109
|
|
109
|
-
TALKTOME_BEARER_SECRET
|
110
|
+
TALKTOME_BEARER_SECRET secret for the webapi, to let send emails to anyone
|
110
111
|
```
|
111
112
|
|
112
113
|
## Hacking Talktome
|
data/lib/talktome/version.rb
CHANGED
data/lib/talktome.rb
CHANGED
@@ -58,7 +58,8 @@ module Talktome
|
|
58
58
|
domain: ENV['TALKTOME_SMTP_DOMAIN'],
|
59
59
|
user_name: ENV['TALKTOME_SMTP_USER'],
|
60
60
|
password: ENV['TALKTOME_SMTP_PASSWORD'],
|
61
|
-
enable_starttls_auto: (ENV['TALKTOME_SMTP_STARTTLS_AUTO'] != 'false')
|
61
|
+
enable_starttls_auto: (ENV['TALKTOME_SMTP_STARTTLS_AUTO'] != 'false'),
|
62
|
+
openssl_verify_mode: ENV['TALKTOME_SMTP_OPENSSL_VERIFY_MODE'] || "peer",
|
62
63
|
}) if email_delivery == :smtp
|
63
64
|
|
64
65
|
email_config.merge!({
|