@tiledesk/tiledesk-tybot-connector 0.2.12 → 0.2.13

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ ### v0.2.13 - test
9
+ - replyto send email test
10
+
8
11
  ### 0.2.12
9
12
  - Updated @tiledesk/tiledesk-client => 0.10.4 to support the new email endpoint
10
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -75,14 +75,17 @@ class DirSendEmail {
75
75
  const filled_subject = filler.fill(action.subject, requestVariables);
76
76
  const filled_text = filler.fill(action.text, requestVariables);
77
77
  const filled_to = filler.fill(action.to, requestVariables);
78
+ const reply_to = filler.fill(action.reply_to, requestVariables);
78
79
  const message_echo = await this.tdclient.sendEmail({
79
80
  subject: filled_subject,
80
81
  text: filled_text,
81
- to: filled_to
82
+ to: filled_to,
83
+ replyto: "andreasponziello@tiledesk.com"
82
84
  });
83
85
  if (this.log) {console.log("email sent. filled_subject:", filled_subject);}
84
86
  if (this.log) {console.log("email sent. filled_text:", filled_text);}
85
87
  if (this.log) {console.log("email sent. filled_to:", filled_to);}
88
+ if (this.log) {console.log("email sent. reply_to:", reply_to);}
86
89
  if (completion) {
87
90
  completion(null, message_echo);
88
91
  }