mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Addfeature: Enable HTML email content for richer comment
This commit is contained in:
parent
db1cf5bb64
commit
8d76db91b8
3 changed files with 37 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue