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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -1
  3. data/lib/dcidev_mailer/rails.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ac7c10ec0396e09c6aca4d9fcb2139aab564278db919bd3bacd296ba2c39cfe
4
- data.tar.gz: 378f826df467a228894e80d208f0f03fb15ebd34208c34f66140c922d8f654e2
3
+ metadata.gz: 4956bc5bb816bedd327ed4807d1e904e57b19a95d684cb3a21fd0ab35bfd9351
4
+ data.tar.gz: 5347015c28d96ed779c5c50e47ab24afa6b6a488550c580dcb46d846297e83c7
5
5
  SHA512:
6
- metadata.gz: aabb088036f419ea923e8b461726e25b6e6a67b234f2aeab1556590d7d26fe0183367bb7f8a421bc4f95a79b6476f77e76d54e981ca6888602513756bed04b77
7
- data.tar.gz: 149c14c2b6c1f56d73143ba9c1c08196c5609bca5edc5b6b7ea490fdb7c5842e1890a8ee4ccbb946ddba1cf7aa8d9555e53193d73ba099889c9d8bd944fba113
6
+ metadata.gz: 0aee6dfe65decc88a005b0bc0baf1387a3e0655927d8f24e07f9eb08aaa2b5e3a9d9a2ef430c25ca741477b0d6423a30b1e814db25513af656e786a108e9a220
7
+ data.tar.gz: 59282a2ae0a9d575eaf0222c8560f30b12a39745add570d9ade923fc3d4b4476df4de72428e60fb78128b9e2ec0108a3653ed5ecfb867add858ec16bbf5185ee
data/README.md CHANGED
@@ -1 +1,40 @@
1
- dcidev_mailer
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
+ ```
@@ -1,7 +1,7 @@
1
1
  require 'mail'
2
2
 
3
3
  module DcidevMailer
4
- class Rails < ApplicationMailer
4
+ class Rails < ActionMailer::Base
5
5
  default from: ENV['DEFAULT_EMAIL_SENDER']
6
6
 
7
7
  class << self
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.1
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-06 00:00:00.000000000 Z
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.0.6
70
+ rubygems_version: 3.2.3
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: Commonly used email codes