@ikonintegration/ikapi 4.0.0-alpha13 → 4.0.0-alpha14
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/package.json +1 -1
- package/src/Mailer/IKMailer.js +2 -1
package/package.json
CHANGED
package/src/Mailer/IKMailer.js
CHANGED
|
@@ -22,10 +22,11 @@ export default class IKMailer {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//to can be an array or just one address
|
|
25
|
-
async sendTemplatedEmail(_to, _templates, _data, _optionalCC, _optionalAttachments) {
|
|
25
|
+
async sendTemplatedEmail(_to, _templates, _data, _optionalCC, _optionalAttachments, _optionalHeaders) {
|
|
26
26
|
//Generate emails
|
|
27
27
|
const email = new Email({
|
|
28
28
|
message: {
|
|
29
|
+
...(_optionalHeaders ? {headers: _optionalHeaders} : {}),
|
|
29
30
|
from: this.from,
|
|
30
31
|
to: _to,
|
|
31
32
|
...(_optionalAttachments ? {attachments: _optionalAttachments} : {}),
|