0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Updated GhostMailer to allow forcing text content

no-issue

This is so that we can pass our own customised text content
This commit is contained in:
Fabien O'Carroll 2019-10-10 20:09:23 +07:00
parent 1b04b48ffd
commit b030081a4b

View file

@ -36,10 +36,12 @@ function getFromAddress(requestedFromAddress) {
}
function createMessage(message) {
const encoding = 'base64';
const generateTextFromHTML = !message.forceTextContent;
return Object.assign({}, message, {
from: getFromAddress(message.from),
generateTextFromHTML: true,
encoding: 'base64'
generateTextFromHTML,
encoding
});
}