mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -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);
|
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) {
|
getText(url, type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'subscribe':
|
case 'subscribe':
|
||||||
|
|
Loading…
Add table
Reference in a new issue