Files
starr-philproperties/data/email_body.data.js
T
2026-05-07 23:35:22 +08:00

116 lines
4.0 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>
`,
}),
ADD_STAFF: ({ name, email, password, expiryHours = 24 }) => ({
subject: "Your Staff Account Has Been Created - STARR System",
title: "Staff Account Created",
body: `
<p>Dear ${name},</p>
<p>Your staff account has been successfully created in the STARR System.
Below are your login credentials:</p>
<div style="margin:24px 0;padding:16px;border:1px solid #e5e7eb;border-radius:6px;background:#f9fafb">
<table style="width:100%;font-size:14px">
<tr>
<td style="padding:6px 0;color:#6b7280;width:100px"><strong>Email</strong></td>
<td style="padding:6px 0">${email}</td>
</tr>
<tr>
<td style="padding:6px 0;color:#6b7280"><strong>Password</strong></td>
<td style="padding:6px 0;font-size:18px;color:#1d4ed8">${password}</td>
</tr>
</table>
</div>
<p>⚠️ This temporary password is valid for <strong>${expiryHours} hours</strong>.
You will be required to change it upon first login.</p>
<p>If you did not request this account or believe this was created in error,
please contact your administrator immediately to have it deactivated.</p>
<p style="margin-top:16px;font-size:13px;color:#6b7280">
For security, please do not share your credentials with anyone.
If you need a new password, contact your administrator.
</p>
`,
}),
};