mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
🐛 Fixed missing text version in bulk email (#11919)
closes #11917 - Pass text-only version to mailgun as `text` not `plaintext` - This ensures we send a text-only version of the email, and this in turn should help to improve spam scores
This commit is contained in:
parent
6535f2ef75
commit
27066ce910
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,10 @@ module.exports = {
|
|||
|
||||
const messageData = Object.assign({}, message, batchData);
|
||||
|
||||
// Rename plaintext field to text for Mailgun
|
||||
messageData.text = messageData.plaintext;
|
||||
delete messageData.plaintext;
|
||||
|
||||
return new Promise((resolve) => {
|
||||
mailgunInstance.messages().send(messageData, (error, body) => {
|
||||
if (error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue