dcidev_mailer 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +40 -1
- data/lib/dcidev_mailer/rails.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4956bc5bb816bedd327ed4807d1e904e57b19a95d684cb3a21fd0ab35bfd9351
|
4
|
+
data.tar.gz: 5347015c28d96ed779c5c50e47ab24afa6b6a488550c580dcb46d846297e83c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aee6dfe65decc88a005b0bc0baf1387a3e0655927d8f24e07f9eb08aaa2b5e3a9d9a2ef430c25ca741477b0d6423a30b1e814db25513af656e786a108e9a220
|
7
|
+
data.tar.gz: 59282a2ae0a9d575eaf0222c8560f30b12a39745add570d9ade923fc3d4b4476df4de72428e60fb78128b9e2ec0108a3653ed5ecfb867add858ec16bbf5185ee
|
data/README.md
CHANGED
@@ -1 +1,40 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
ENV :
|
3
|
+
```
|
4
|
+
DEFAULT_EMAIL_SENDER
|
5
|
+
USE_MANDRILL_MAILER
|
6
|
+
[EMAIL_PROVIDER]_SMTP_ADDRESS
|
7
|
+
[EMAIL_PROVIDER]_SMTP_DOMAIN
|
8
|
+
[EMAIL_PROVIDER]_SMTP_PASSWORD
|
9
|
+
[EMAIL_PROVIDER]_SMTP_USERNAME
|
10
|
+
[EMAIL_PROVIDER]_SMTP_PORT
|
11
|
+
[EMAIL_PROVIDER]_SMTP_AUTO_TLS
|
12
|
+
[EMAIL_PROVIDER]_SMTP_TLS
|
13
|
+
```
|
14
|
+
|
15
|
+
mandril
|
16
|
+
|
17
|
+
```
|
18
|
+
response = ::DcidevMailer::Mandrill.send_email(
|
19
|
+
subject: email_template.subject,
|
20
|
+
html_body: email_template.wording,
|
21
|
+
header_url: email_template.header.try(:url),
|
22
|
+
footer_url: email_template.footer.try(:url),
|
23
|
+
to: customer.email,
|
24
|
+
# from: "from@gmail.com",
|
25
|
+
attachments: attachments,
|
26
|
+
email_template_path: "cimb_mailer/email.html.erb"
|
27
|
+
)
|
28
|
+
```
|
29
|
+
|
30
|
+
action mailer
|
31
|
+
```
|
32
|
+
DcidevMailer::Rails.email(
|
33
|
+
html_body: template.wording,
|
34
|
+
header_url: template.header.try(:url),
|
35
|
+
footer_url: template.footer.try(:url),
|
36
|
+
file_attachments: file_attachments,
|
37
|
+
to: customer.email,
|
38
|
+
subject: template.subject
|
39
|
+
)
|
40
|
+
```
|
data/lib/dcidev_mailer/rails.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dcidev_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Punto Damar P
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mimemagic
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
70
|
+
rubygems_version: 3.2.3
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Commonly used email codes
|