embulk-output-send_email 0.1.4 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d86c78f8eb0c143cc1172b071478b90bc8de28e69e5e633971abb74dc59f430
4
- data.tar.gz: b768c32e8e4ad29824196d9f63f73d933da91eb91af1c7ac9847e15205fc5094
3
+ metadata.gz: 9f251dea23a21919bb585a16ff17e9639e6febdbdd49c9d255ad7525a2fa49d5
4
+ data.tar.gz: 6deb25d8ab43d7a79a9f3c77c317cec0a44858dafa9f6eeb2607df05ac883492
5
5
  SHA512:
6
- metadata.gz: c428698aa8646bd288ab7309366c6965f20a13e02fee3e510a9c74ba0ccc0338bffaddbc9c33a4bc1e4537a6203c815a1106fab2ed7678d4147c89e3a8ed0d71
7
- data.tar.gz: 7096d81ffc2eab8778a5e7bb4122b46b893f256e03859ad6afc68c630e9fb5bcf934e89f573993b2f1421c9944b4999dfa6b3c82ebc7960f159e8608a08bb981
6
+ metadata.gz: 843190ae182eedd05c47a6ce0a0463106ed07049a0d641e7e6dd73680f616c79b2afe8337a030c17c041b9cb8c6cb22e4bdc44ca74c3a81580b2956b7b3f62ce
7
+ data.tar.gz: 4722a9c29ffae6c9eef38f30087d0a2e1913dd3908324649e34ccafa3c6d42241321bb59beb31f2d29c83a98cf5461568d218d2accac2e7c12ce6c136095fc7c
data/README.md CHANGED
@@ -13,17 +13,62 @@ An output plugin for Embulk to send email with data
13
13
 
14
14
  - **send_email**: Required attribute for this output plugin
15
15
  - **to**: To whom you want to send email mention the email ID(required)
16
+ - **cc**: Mail id of others to send carbon copy
16
17
  - **from**: From which email ID you want to send (required)
17
18
  - **password**: Password of your email ID from which you want to send (required)
18
19
  - **port**: Port of email (for gmail its `587`)(required)
20
+ - **username**: Username of authentic user (required)
19
21
  - **host**: Host of your email (For gmail `smtp.gmail.com`) (required)
20
- - **row**: How many row you want to send with email mention like 1,2,3(required)
21
- - **file_type**: Mention file type like (example: json,html) (required)
22
-
22
+ - **subject**: Subject for the mail body
23
+ - **row**: How many row you want to send with email mention like 1,2,3
24
+ - **format_type**: Mention file type like (example: json,html) (required)
25
+ - **protocol**: TLSv1.2 (required)
26
+ - **auth**: When authentication is required make it 'true' otherwise default it is 'false'
27
+ - **enable_starttls**: true/ false (required)
28
+ - **template**: If format_type is 'html', provide here the path of .html/ .txt
29
+ - **is_html**: If template is 'html' put it true, if it is 'txt' put it as false, by default it is false
30
+
31
+ ```
32
+ NOTE: If format_type is html and path is given in field 'template', make sure - The templates should have '{{data}}' placeholder so that the data generated by send_email plugin will be put here; sample .html and .txt is shown below -
33
+
34
+ <!DOCTYPE html>
35
+ <html lang="en">
36
+ <head>
37
+ <meta charset="UTF-8">
38
+ <title>Title</title>
39
+ </head>
40
+ <body>
41
+ <header>
42
+ Hi Team,
43
+ <h3>Here is the project</h3>
44
+ </header>
45
+ <h1> hello </h1>
46
+
47
+ {{data}}
48
+
49
+ <footer>
50
+ Thanks,<br>
51
+ ABC
52
+ </footer>
53
+ </body>
54
+ </html>
55
+
56
+ -------------------------------------------
57
+
58
+ Hi John,
59
+ Here is the daily ETL data
60
+
61
+ {{data}}
62
+
63
+ Thanks,
64
+ ABC
65
+
66
+
67
+ ```
68
+
23
69
  ## Example - columns
24
70
 
25
71
  Say input.csv is as follows:
26
-
27
72
 
28
73
  ```
29
74
  year country_code country_name literacy_rate
@@ -43,13 +88,22 @@ Say input.csv is as follows:
43
88
  ```yaml
44
89
  out:
45
90
  type: send_email
46
- to: abc@example.com
47
- from: abc@example.com
48
- password: XXXXXX
91
+ to:
92
+ - abc@gmail.com
93
+ - def@gmail.com
94
+ from: pqr@gmail.com
95
+ password: password
49
96
  port: 587
97
+ username: pqr@gmail.com
50
98
  host: smtp.gmail.com
99
+ subject: XYZ123
51
100
  row: 3
52
- filetype: html
101
+ format_type: html
102
+ protocol: TLSv1.2
103
+ auth: true
104
+ enable_starttls: true
105
+ template: C:\Users\Abhishek Gupta\Desktop\github\embulk-output-send_email\example\email.txt
106
+ is_html: false
53
107
  ```
54
108
 
55
109
 
data/build.gradle CHANGED
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.4"
16
+ version = "0.1.6"
17
17
 
18
18
  sourceCompatibility = 1.8
19
19
  targetCompatibility = 1.8
data/example/config.yml CHANGED
@@ -23,15 +23,15 @@ filters:
23
23
  out:
24
24
  type: send_email
25
25
  to:
26
- - ankit.navral@infoobjects.com
27
- - ankit.kumar@infoobjects.com
28
- from: abhishek.gupta@infoobjects.com
29
- password: Abhi@q421
26
+ - abc@gmail.com
27
+ - def@gmail.com
28
+ from: pqr@gmail.com
29
+ password: password
30
30
  port: 587
31
- username: abhishek.gupta@infoobjects.com
31
+ username: pqr@gmail.com
32
32
  host: smtp.gmail.com
33
33
  subject: XYZ123
34
- # row: 3
34
+ row: 3
35
35
  format_type: html
36
36
  protocol: TLSv1.2
37
37
  auth: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-send_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infoobjects Inc.
@@ -53,7 +53,7 @@ files:
53
53
  - classpath/activation-1.1.jar
54
54
  - classpath/commons-codec-1.10.jar
55
55
  - classpath/commons-logging-1.2.jar
56
- - classpath/embulk-output-send_email-0.1.4.jar
56
+ - classpath/embulk-output-send_email-0.1.6.jar
57
57
  - classpath/google-api-client-1.26.0.jar
58
58
  - classpath/google-api-client-java6-1.26.0.jar
59
59
  - classpath/google-api-services-gmail-v1-rev83-1.23.0.jar