Skip to content

Commit

Permalink
fixing message author email template
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanmtz committed Nov 26, 2024
1 parent bf1704e commit 06afa61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/mail/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const constants = require('./constants')
const withTemplate = require('./template')
const models = require('../../models')
const emailTemplate = require('./templates/main-content')
const basicEmailTemplate = require('./templates/base-content')

function capitalizeFirstLetter(string) {
return string[0].toUpperCase() + string.slice(1);
Expand Down Expand Up @@ -240,9 +241,9 @@ if (constants.canSendEmail) {
[
{
type: 'text/html',
value: `
value: basicEmailTemplate.baseContentEmailTemplate(`
<p>${i18n.__('mail.messageAuthor.intro', { name: senderName, title: task.title, url: `${process.env.FRONTEND_HOST}/#/task/${task.id}` })}</p>
${i18n.__('mail.messageAuthor.message', { message })} <p>${Signatures.sign(language)}</p>`
${i18n.__('mail.messageAuthor.message', { message })}`)
}],
senderEmail
)
Expand Down

0 comments on commit 06afa61

Please sign in to comment.