We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43ed191 commit 598ba5eCopy full SHA for 598ba5e
server/services/Mailer.js
@@ -10,6 +10,24 @@ class Mailer extends helper.Mail {
10
this.subject = subject;
11
this.body = new helper.Content('text/html', content);
12
this.recipients = this.formatAddresses(recipients);
13
+
14
+ this.addContent(this.body);
15
+ this.addClickTracking();
16
+ this.addRecipients();
17
+ }
18
19
+ formatAddresses(recipients) {
20
+ return recipients.map(({ email }) => {
21
+ return new helper.Email(email);
22
+ });
23
24
25
+ addClickTracking() {
26
+ const trackingSettings = new helper.TrackingSettings();
27
+ const clickTracking = new helper.ClickTracking(true, true);
28
29
+ trackingSettings.setClickTracking(clickTracking);
30
+ this.addTrackingSettings(trackingSettings);
31
}
32
33
0 commit comments