mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
chore:
This commit is contained in:
@@ -88,10 +88,14 @@ export class EmailService implements IEmailService {
|
|||||||
sysTitle = siteInfo.title || sysTitle;
|
sysTitle = siteInfo.title || sysTitle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let subject = email.subject;
|
||||||
|
if (!subject.startsWith(`【${sysTitle}】`)) {
|
||||||
|
subject = `【${sysTitle}】${subject}`;
|
||||||
|
}
|
||||||
const mailOptions = {
|
const mailOptions = {
|
||||||
from: `${sysTitle} <${emailConfig.sender}>`,
|
from: `${sysTitle} <${emailConfig.sender}>`,
|
||||||
to: email.receivers.join(', '), // list of receivers
|
to: email.receivers.join(', '), // list of receivers
|
||||||
subject: `【${sysTitle}】${email.subject}`,
|
subject: subject,
|
||||||
text: email.content,
|
text: email.content,
|
||||||
};
|
};
|
||||||
await transporter.sendMail(mailOptions);
|
await transporter.sendMail(mailOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user