mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
81 lines
2.6 KiB
JavaScript
81 lines
2.6 KiB
JavaScript
export const emailTemplates = {
|
|
OTP: ({ otp, expiryMinutes = 10 }) => ({
|
|
subject: "Email OTP Verification - STARR System",
|
|
title: "Email Verification",
|
|
body: `
|
|
<p>Dear User,</p>
|
|
|
|
<p>Please use the One-Time Password (OTP) below to verify your email address.
|
|
This code is valid for <strong>${expiryMinutes} minutes</strong>.</p>
|
|
|
|
<div style="margin:24px 0;font-size:32px;font-weight:bold;letter-spacing:8px;text-align:center;color:#1d4ed8">
|
|
${otp}
|
|
</div>
|
|
|
|
<p style="font-size:13px;color:#6b7280">
|
|
For security reasons, please do not share this code with anyone.
|
|
If you did not request this, please contact the administrator.
|
|
</p>
|
|
`,
|
|
}),
|
|
|
|
WELCOME: ({ name }) => ({
|
|
subject: "Welcome to STARR System",
|
|
title: `Welcome Aboard!`,
|
|
body: `
|
|
<p>Dear ${name},</p>
|
|
|
|
<p>We are pleased to welcome you to the STARR System. Your account has been successfully created and is now ready for use.</p>
|
|
|
|
<p>You may now access your dashboard and begin using the available services.</p>
|
|
|
|
<p style="margin-top:16px">We look forward to supporting you.</p>
|
|
`,
|
|
}),
|
|
|
|
PASSWORD_CHANGED: () => ({
|
|
subject: "Password Update Confirmation - STARR System",
|
|
title: "Password Successfully Updated",
|
|
body: `
|
|
<p>Dear User,</p>
|
|
|
|
<p>This is to confirm that your account password has been successfully changed.</p>
|
|
|
|
<p>If you did not perform this action, please reset your password immediately or contact support.</p>
|
|
|
|
<p style="margin-top:16px">For your security, we recommend using a strong and unique password.</p>
|
|
`,
|
|
}),
|
|
|
|
ADDED_TO_GROUP: ({ groupName }) => ({
|
|
subject: "Group Assignment Notification",
|
|
title: "Added to Group",
|
|
body: `
|
|
<p>Dear User,</p>
|
|
|
|
<p>You have been assigned to the group <strong>${groupName}</strong> in the STARR System.</p>
|
|
|
|
<p>This assignment grants you access to shared resources and collaboration tools within the group.</p>
|
|
|
|
<p style="margin-top:16px">Please log in to your account to view group details.</p>
|
|
`,
|
|
}),
|
|
|
|
TASK_ASSIGNED: ({ taskTitle, dueDate }) => ({
|
|
subject: "New Task Assignment",
|
|
title: "Task Assigned",
|
|
body: `
|
|
<p>Dear User,</p>
|
|
|
|
<p>You have been assigned a new task in the STARR System.</p>
|
|
|
|
<div style="margin:16px 0;padding:12px;border:1px solid #e5e7eb;border-radius:6px">
|
|
<strong>Task:</strong> ${taskTitle}
|
|
</div>
|
|
|
|
<p><strong>Due Date:</strong> ${dueDate}</p>
|
|
|
|
<p style="margin-top:16px">Kindly ensure completion within the specified timeframe.</p>
|
|
`,
|
|
}),
|
|
}; |