fix: remove isPersonalEmail logic
This commit is contained in:
@@ -30,7 +30,6 @@ const sendEmailNotification = async (feedId: string, authorId: string, comment?:
|
||||
<a class="button" href="${postLink}">View comment</a>
|
||||
</div>
|
||||
`,
|
||||
isPersonalEmail: false,
|
||||
replyTo: '[email protected]'
|
||||
}
|
||||
];
|
||||
|
||||
@@ -44,6 +44,7 @@ export async function POST({ request }) {
|
||||
|
||||
const emailData = [
|
||||
{
|
||||
from: `"Best from ClassroomIO" <[email protected]>`,
|
||||
to: email,
|
||||
subject: `Join ${name} on ClassroomIO 😃`,
|
||||
content: `
|
||||
@@ -52,8 +53,7 @@ export async function POST({ request }) {
|
||||
<div>
|
||||
<a class="button" href="${inviteLink}">Accept Invitation</a>
|
||||
</div>
|
||||
`,
|
||||
isPersonalEmail: true
|
||||
`
|
||||
}
|
||||
];
|
||||
await sendEmail(emailData);
|
||||
|
||||
@@ -37,6 +37,7 @@ export async function POST({ request }) {
|
||||
|
||||
const emailData = [
|
||||
{
|
||||
from: `"Best from ClassroomIO" <[email protected]>`,
|
||||
to,
|
||||
subject: 'Action Required: Confirm your email',
|
||||
content: `
|
||||
@@ -47,8 +48,7 @@ export async function POST({ request }) {
|
||||
<div>
|
||||
<a class="button" href="${verificationLink}">Verify</a>
|
||||
</div>
|
||||
`,
|
||||
isPersonalEmail: true
|
||||
`
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ export async function POST({ request }) {
|
||||
|
||||
const emailData = [
|
||||
{
|
||||
from: `"Best from ClassroomIO" <[email protected]>`,
|
||||
to,
|
||||
subject: 'Welcome to ClassroomIO!',
|
||||
content: `
|
||||
@@ -44,8 +45,7 @@ export async function POST({ request }) {
|
||||
<p>
|
||||
PS: I reply personally to every email. We don't have an outsourced support team at the other end of the globe.. ;-)
|
||||
</p>
|
||||
`,
|
||||
isPersonalEmail: true
|
||||
`
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user