mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
feat: add a reminder for early access in the invitation email (#4097)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -72,11 +72,15 @@ export class MailService {
|
|||||||
invitationInfo.workspace.name
|
invitationInfo.workspace.name
|
||||||
}</span>`;
|
}</span>`;
|
||||||
|
|
||||||
|
const subContent =
|
||||||
|
'Currently, AFFiNE Cloud is in the early access stage. Only Early Access Sponsors can register and log in to AFFiNE Cloud.<a href="https://community.affine.pro/c/insider-general/" style="color: #1e67af" >Please click here for more information.</a>';
|
||||||
|
|
||||||
const html = emailTemplate({
|
const html = emailTemplate({
|
||||||
title: 'You are invited!',
|
title: 'You are invited!',
|
||||||
content,
|
content,
|
||||||
buttonContent: 'Accept & Join',
|
buttonContent: 'Accept & Join',
|
||||||
buttonUrl,
|
buttonUrl,
|
||||||
|
subContent,
|
||||||
});
|
});
|
||||||
|
|
||||||
return this.sendMail({
|
return this.sendMail({
|
||||||
|
|||||||
@@ -3,11 +3,13 @@ export const emailTemplate = ({
|
|||||||
content,
|
content,
|
||||||
buttonContent,
|
buttonContent,
|
||||||
buttonUrl,
|
buttonUrl,
|
||||||
|
subContent,
|
||||||
}: {
|
}: {
|
||||||
title: string;
|
title: string;
|
||||||
content: string;
|
content: string;
|
||||||
buttonContent: string;
|
buttonContent: string;
|
||||||
buttonUrl: string;
|
buttonUrl: string;
|
||||||
|
subContent?: string;
|
||||||
}) => {
|
}) => {
|
||||||
return `<body style="background: #f6f7fb; overflow: hidden">
|
return `<body style="background: #f6f7fb; overflow: hidden">
|
||||||
<table
|
<table
|
||||||
@@ -58,7 +60,9 @@ export const emailTemplate = ({
|
|||||||
>${content}</td>
|
>${content}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="margin-left: 24px; padding-top: 0; padding-bottom: 64px">
|
<td style="margin-left: 24px; padding-top: 0; padding-bottom: ${
|
||||||
|
subContent ? '0' : '64px'
|
||||||
|
}">
|
||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border-radius: 8px" bgcolor="#1E96EB">
|
<td style="border-radius: 8px" bgcolor="#1E96EB">
|
||||||
@@ -85,6 +89,24 @@ export const emailTemplate = ({
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
${
|
||||||
|
subContent
|
||||||
|
? `<tr>
|
||||||
|
<td
|
||||||
|
style="
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px;
|
||||||
|
font-family: inter, Arial, Helvetica, sans-serif;
|
||||||
|
color: #444;
|
||||||
|
padding-top: 24px;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
${subContent}
|
||||||
|
</td>
|
||||||
|
</tr>`
|
||||||
|
: ''
|
||||||
|
}
|
||||||
</table>
|
</table>
|
||||||
<table
|
<table
|
||||||
width="100%"
|
width="100%"
|
||||||
|
|||||||
Reference in New Issue
Block a user