mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
281d52610f
refs TryGhost/Team#1826 - adds new service package that manages all the email alert notifications for free members and paid subscriptions - includes email templates for free member signup and paid subscription start/cancel - initializes staff service before members to allow managing email alert notifications - passes staff service to members api for triggering alerts
14 lines
401 B
JavaScript
14 lines
401 B
JavaScript
module.exports = function (data) {
|
|
// Be careful when you indent the email, because whitespaces are visible in emails!
|
|
return `
|
|
Hey there,
|
|
|
|
A paid member has just cancelled their subscription: "${data.memberData.name}"
|
|
|
|
---
|
|
|
|
Sent to ${data.toEmail} from ${data.siteDomain}.
|
|
If you would no longer like to receive these notifications you can adjust your settings at ${data.staffUrl}.
|
|
`;
|
|
};
|