Addfeature: Enable HTML email content for richer comment

This commit is contained in:
Sam X. Chen 2019-08-12 17:41:49 -04:00
parent db1cf5bb64
commit 8d76db91b8
3 changed files with 37 additions and 18 deletions

View file

@ -32,14 +32,14 @@ Meteor.startup(() => {
if (texts.length === 0) return;
// merge the cached content into single email and flush
const text = texts.join('\n\n');
const html = texts.join('<br/>\n\n');
user.clearEmailBuffer();
try {
Email.send({
to: user.emails[0].address.toLowerCase(),
from: Accounts.emailTemplates.from,
subject,
text,
html,
});
} catch (e) {
return;