mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Server: Update email templates
This commit is contained in:
parent
e484671a08
commit
0853521bc9
@ -1,19 +1,24 @@
|
||||
import markdownUtils from '@joplin/lib/markdownUtils';
|
||||
import config from '../../config';
|
||||
import { EmailSubjectBody } from '../../models/EmailModel';
|
||||
import { stripePortalUrl } from '../../utils/urlUtils';
|
||||
import { stripePortalUrl, helpUrl } from '../../utils/urlUtils';
|
||||
|
||||
export default (): EmailSubjectBody => {
|
||||
return {
|
||||
subject: `Your ${config().appName} payment could not be processed`,
|
||||
body: `
|
||||
|
||||
Your last ${config().appName} payment could not be processed. As a result your account has disabled.
|
||||
Your last ${config().appName} payment could not be processed. As a result your account has been disabled.
|
||||
|
||||
To re-activate your account, please update your payment details, or contact us for more details.
|
||||
To re-activate your account, please update your payment details.
|
||||
|
||||
[Manage your subscription](${markdownUtils.escapeLinkUrl(stripePortalUrl())})
|
||||
Following this link to [manage your subscription](${markdownUtils.escapeLinkUrl(stripePortalUrl())}).
|
||||
|
||||
For more information please see the [help page](${helpUrl()}).
|
||||
|
||||
Thank you,
|
||||
|
||||
Joplin Cloud Team
|
||||
`.trim(),
|
||||
};
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
import markdownUtils from '@joplin/lib/markdownUtils';
|
||||
import config from '../../config';
|
||||
import { EmailSubjectBody } from '../../models/EmailModel';
|
||||
import { stripePortalUrl } from '../../utils/urlUtils';
|
||||
import { stripePortalUrl, helpUrl } from '../../utils/urlUtils';
|
||||
|
||||
export default function(): EmailSubjectBody {
|
||||
return {
|
||||
@ -13,7 +13,7 @@ We were not able to process your last payment. Please follow this URL to update
|
||||
|
||||
[Manage your subscription](${markdownUtils.escapeLinkUrl(stripePortalUrl())})
|
||||
|
||||
Please answer this email if you have any question.
|
||||
For more information please see the [help page](${helpUrl()}).
|
||||
|
||||
Thank you,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user