Merge pull request #2611 from whowillcare/master

Addfeature: Enable HTML email content for richer comment
This commit is contained in:
Lauri Ojansivu 2019-08-13 01:08:22 +03:00 committed by GitHub
commit b9a7bd3503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;