mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added getSubject function for members emails
no-issue
This commit is contained in:
parent
6f160518d1
commit
98f27c1c33
1 changed files with 12 additions and 0 deletions
|
@ -203,6 +203,18 @@ function createApiInstance() {
|
|||
return ghostMailer.send(msg);
|
||||
}
|
||||
},
|
||||
getSubject(type) {
|
||||
const siteTitle = settingsCache.get('title');
|
||||
switch (type) {
|
||||
case 'subscribe':
|
||||
return `📫 Confirm your subscription to ${siteTitle}`;
|
||||
case 'signup':
|
||||
return `🙌 Complete your sign up to ${siteTitle}!`;
|
||||
case 'signin':
|
||||
default:
|
||||
return `🔑 Secure sign in link for ${siteTitle}`;
|
||||
}
|
||||
},
|
||||
getText(url, type) {
|
||||
switch (type) {
|
||||
case 'subscribe':
|
||||
|
|
Loading…
Add table
Reference in a new issue