ztechno_core 0.0.51 → 0.0.54
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/lib/mail_service.js
CHANGED
|
@@ -22,7 +22,7 @@ class ZMailService {
|
|
|
22
22
|
subject: mailOpts.subject,
|
|
23
23
|
text: mailOpts.body || undefined,
|
|
24
24
|
html: mailOpts.html || undefined,
|
|
25
|
-
dkim: mailOpts.dkim,
|
|
25
|
+
dkim: this.opt.dkim ?? mailOpts.dkim,
|
|
26
26
|
priority: mailOpts.priority,
|
|
27
27
|
};
|
|
28
28
|
return new Promise((resolve, reject) => {
|
|
@@ -5,12 +5,12 @@ export type MailServiceOptions = {
|
|
|
5
5
|
pass: string;
|
|
6
6
|
};
|
|
7
7
|
mailSender: string;
|
|
8
|
-
}
|
|
8
|
+
} & Partial<Pick<nodemailer.SendMailOptions, 'dkim'>>;
|
|
9
9
|
export type MailOptionsBase = {
|
|
10
10
|
recipient: string;
|
|
11
11
|
subject: string;
|
|
12
12
|
from?: string;
|
|
13
|
-
} & Pick<nodemailer.SendMailOptions, 'dkim' | 'priority'
|
|
13
|
+
} & Partial<Pick<nodemailer.SendMailOptions, 'dkim' | 'priority'>>;
|
|
14
14
|
export type MailOptionsText = MailOptionsBase & {
|
|
15
15
|
body: string;
|
|
16
16
|
};
|