Skip to content

Commit

Permalink
added new image links
Browse files Browse the repository at this point in the history
  • Loading branch information
NIDHI2023 committed Jan 19, 2025
1 parent df5a7a6 commit b3674b2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/scripts/email/wrapped-email.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var createBatches = function (totalEmails, batchSize) {
}
if (emailObjs.length === MAX_EMAIL_LIMIT) {
// eslint-disable-next-line no-console
console.log("Reached email limit of " + MAX_EMAIL_LIMIT + " emails per day, stopped at:\n i=" + i + ", user " + totalEmails[i] + "\nContinue from this user the next day by typing \"node src/scripts/email/wrapped-email.js " + i + "\"");
console.log("Reached email limit of " + MAX_EMAIL_LIMIT + " emails per day, stopped at:\n i=" + i + ", user " + totalEmails[i] + "\nContinue from this user the next day by typing \"node " + process.argv[1] + " " + i + "\"");
}
return emailObjs;
};
Expand Down Expand Up @@ -116,7 +116,7 @@ var createBatches = function (totalEmails, batchSize) {
_a.label = 3;
case 3:
_a.trys.push([3, 5, , 6]);
return [4 /*yield*/, resend.batch.send(createBatches(userEmails, 2))];
return [4 /*yield*/, resend.batch.send(createBatches(userEmails, 49))];
case 4:
data = _a.sent();
// eslint-disable-next-line no-console
Expand Down
5 changes: 3 additions & 2 deletions src/scripts/email/wrapped-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const createBatches = (totalEmails: string[], batchSize: number) => {
// eslint-disable-next-line no-console
console.log(`Reached email limit of ${MAX_EMAIL_LIMIT} emails per day, stopped at:
i=${i}, user ${totalEmails[i]}
Continue from this user the next day by typing "node src/scripts/email/wrapped-email.js ${i}"`)
Continue from this user the next day by typing "node ${process.argv[1]} ${i}"`)
}
return emailObjs;

Expand All @@ -84,8 +84,9 @@ Continue from this user the next day by typing "node src/scripts/email/wrapped-e

try {
const data = await resend.batch.send(
createBatches(userEmails, 2)
createBatches(userEmails, 49)
);


// eslint-disable-next-line no-console
console.log("Emails have been sent!");
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/email/wrapped-html.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions src/scripts/email/wrapped-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ export const HTML =`
<div style="font-family: Roboto, sans-serif; margin: 0 auto; font-size: 16px;">
<div style="text-align: center; padding-top: 40px;">
<img src="https://i.postimg.cc/5y5RJj7c/wrappedemail.png"
alt="Queue Me In Wrapped Header" style="height: 25%; width: 100%;">
<img src='https://i.ibb.co/zXssGrC/wrappedemail.png'
alt='Queue Me In Wrapped Header' style="height: 25%; width: 100%;"/>
</div>
<div style="padding: 20px; margin-bottom: 15px; margin-top: 15px;">
Expand All @@ -18,9 +19,9 @@ export const HTML =`
Congratulations on all your hard work this semester!<br>
<i>- The Queue Me In Team</i> </p>
<div style="width: 100%; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 1.5em; padding-bottom: 1em; text-align: center;">
<img src="https://i.postimg.cc/d0CmNLLF/Notification.png" alt="Bell Icon" style="height: 50px;">
<img src="https://i.postimg.cc/d0CmNLLF/Notification.png" alt="Bell Icon" style="height: 50px;">
<img src="https://i.postimg.cc/d0CmNLLF/Notification.png" alt="Bell Icon" style="height: 50px;">
<img src='https://i.ibb.co/4mFzksS/Notification.png' alt="Bell Icon" style="height: 50px;"/>
<img src='https://i.ibb.co/4mFzksS/Notification.png' alt="Bell Icon" style="height: 50px;"/>
<img src='https://i.ibb.co/4mFzksS/Notification.png' alt="Bell Icon" style="height: 50px;"/>
</div>
</div>
Expand All @@ -40,7 +41,7 @@ export const HTML =`
</td>
<!-- Logo -->
<td rowspan="2" style="padding-left: 1.5em; padding-right: 2em; text-align: center; vertical-align: middle;">
<img src="https://i.postimg.cc/Bb3cDMv1/Logo-Copy-2.png" alt="QMI Logo" style="display: block; max-height: 100%; width: auto; max-width: 80px;">
<img src='https://i.ibb.co/0CgQD1g/Logo-Copy-2.png' alt="QMI Logo" style="display: block; max-height: 100%; width: auto; max-width: 80px;"/>
</td>
<!-- Links -->
<td style="padding: 10px 1.5em; text-align: left;">
Expand All @@ -58,6 +59,4 @@ export const HTML =`
</td>
</tr>
</table>
`

0 comments on commit b3674b2

Please sign in to comment.