mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
Added config to send bulk email in testmode
- mailgun has a testmode flag we can use to get email to be accepted but not delivered - this is useful for developers testing general bulk email code - not for users - so it is only available via config
This commit is contained in:
parent
5144a0e09c
commit
3491e60c9d
@ -104,6 +104,12 @@ module.exports = {
|
||||
});
|
||||
}
|
||||
|
||||
if (bulkEmailConfig && bulkEmailConfig.mailgun && bulkEmailConfig.mailgun.testmode) {
|
||||
Object.assign(batchData, {
|
||||
'o:testmode': true
|
||||
});
|
||||
}
|
||||
|
||||
const messageData = Object.assign({}, message, batchData);
|
||||
|
||||
// Rename plaintext field to text for Mailgun
|
||||
|
Loading…
Reference in New Issue
Block a user