Ghost/ghost/staff-service/lib/email-templates/new-paid-cancellation.txt.js
Rishabh 281d52610f Added staff service to manage email alert notifications
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
2022-08-25 18:01:52 +05:30

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}.
`;
};