mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-26 18:58:21 +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 markdownUtils from '@joplin/lib/markdownUtils';
|
||||||
import config from '../../config';
|
import config from '../../config';
|
||||||
import { EmailSubjectBody } from '../../models/EmailModel';
|
import { EmailSubjectBody } from '../../models/EmailModel';
|
||||||
import { stripePortalUrl } from '../../utils/urlUtils';
|
import { stripePortalUrl, helpUrl } from '../../utils/urlUtils';
|
||||||
|
|
||||||
export default (): EmailSubjectBody => {
|
export default (): EmailSubjectBody => {
|
||||||
return {
|
return {
|
||||||
subject: `Your ${config().appName} payment could not be processed`,
|
subject: `Your ${config().appName} payment could not be processed`,
|
||||||
body: `
|
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(),
|
`.trim(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import markdownUtils from '@joplin/lib/markdownUtils';
|
import markdownUtils from '@joplin/lib/markdownUtils';
|
||||||
import config from '../../config';
|
import config from '../../config';
|
||||||
import { EmailSubjectBody } from '../../models/EmailModel';
|
import { EmailSubjectBody } from '../../models/EmailModel';
|
||||||
import { stripePortalUrl } from '../../utils/urlUtils';
|
import { stripePortalUrl, helpUrl } from '../../utils/urlUtils';
|
||||||
|
|
||||||
export default function(): EmailSubjectBody {
|
export default function(): EmailSubjectBody {
|
||||||
return {
|
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())})
|
[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,
|
Thank you,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user