@tiledesk/tiledesk-tybot-connector 0.2.14 → 0.2.15
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
package/package.json
CHANGED
|
@@ -75,13 +75,15 @@ 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.
|
|
79
|
-
const
|
|
78
|
+
const reply_to = filler.fill(action.replyto, requestVariables);
|
|
79
|
+
const message = {
|
|
80
80
|
subject: filled_subject,
|
|
81
81
|
text: filled_text,
|
|
82
82
|
to: filled_to,
|
|
83
83
|
replyto: reply_to
|
|
84
|
-
}
|
|
84
|
+
}
|
|
85
|
+
console.log("email message:", JSON.stringify(message));
|
|
86
|
+
const message_echo = await this.tdclient.sendEmail(message);
|
|
85
87
|
if (this.log) {console.log("email sent. filled_subject:", filled_subject);}
|
|
86
88
|
if (this.log) {console.log("email sent. filled_text:", filled_text);}
|
|
87
89
|
if (this.log) {console.log("email sent. filled_to:", filled_to);}
|