embulk-output-send_email 0.1.4 → 0.1.5

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: 118660efc733c52bfa77b33776ba57a70edb2232799d02cc594390ea8d771a24
4
+ data.tar.gz: 5a8204672003c5130606d455fa673f8a7022f02def287bb750f556697bbd1320
5
5
  SHA512:
6
- metadata.gz: c428698aa8646bd288ab7309366c6965f20a13e02fee3e510a9c74ba0ccc0338bffaddbc9c33a4bc1e4537a6203c815a1106fab2ed7678d4147c89e3a8ed0d71
7
- data.tar.gz: 7096d81ffc2eab8778a5e7bb4122b46b893f256e03859ad6afc68c630e9fb5bcf934e89f573993b2f1421c9944b4999dfa6b3c82ebc7960f159e8608a08bb981
6
+ metadata.gz: 1a1c91336cf0df5a30711accc4120981c9117d6d4f0c15008b60e0e53fe071e613b778a6954ec74fd9f9b8a6717de2fe50a73457ca5e48b6b98214501a03d2c6
7
+ data.tar.gz: 4fd499e5b9fccabe1ba8a2040c64bedc0cc35b96a03ea6f44908ce65d277a1d5daf7efe4be1a39c7b9feb7de2ed1bd4058ec3a35042198b1f9bba7629420ee85
data/README.md CHANGED
@@ -13,17 +13,26 @@ 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
+ ```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```
32
+
23
33
  ## Example - columns
24
34
 
25
35
  Say input.csv is as follows:
26
-
27
36
 
28
37
  ```
29
38
  year country_code country_name literacy_rate
@@ -43,13 +52,22 @@ Say input.csv is as follows:
43
52
  ```yaml
44
53
  out:
45
54
  type: send_email
46
- to: abc@example.com
47
- from: abc@example.com
48
- password: XXXXXX
55
+ to:
56
+ - abc@gmail.com
57
+ - def@gmail.com
58
+ from: pqr@gmail.com
59
+ password: password
49
60
  port: 587
61
+ username: pqr@gmail.com
50
62
  host: smtp.gmail.com
63
+ subject: XYZ123
51
64
  row: 3
52
- filetype: html
65
+ format_type: html
66
+ protocol: TLSv1.2
67
+ auth: true
68
+ enable_starttls: true
69
+ template: C:\Users\Abhishek Gupta\Desktop\github\embulk-output-send_email\example\email.txt
70
+ is_html: false
53
71
  ```
54
72
 
55
73
 
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.5"
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.5
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.5.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