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:
parent
1b04b48ffd
commit
b030081a4b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue