generated from cepdnaclk/eYY-3yp-project-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from cepdnaclk/main
deploy
- Loading branch information
Showing
93 changed files
with
4,549 additions
and
1,254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ export async function sendInvitationEmail( | |
|
||
const signature = "IMPAX TEAM"; | ||
|
||
// <a href="http://16.170.235.219:5000/accept-invitation/${invitationToken}">Accept Invitation</a> | ||
// Compose the email | ||
const mailOptions = { | ||
from: "[email protected]", | ||
|
@@ -25,7 +26,11 @@ export async function sendInvitationEmail( | |
html: ` | ||
<p>Hello,</p> | ||
<p>You've been invited to join the team ${teamName}! Click the following link to accept the invitation:</p> | ||
<a href="http://16.170.235.219:5000/accept-invitation/${invitationToken}">Accept Invitation</a> | ||
<a href="http://localhost:5000/manager/accept-invitation/token/${invitationToken}" | ||
style="display: inline-block; padding: 10px 20px; background-color: #4CAF50; color: #ffffff; | ||
text-decoration: none; border-radius: 5px;">Accept Invitation</a><br><br> | ||
<div> | ||
<img src="cid:Impax" alt="Impax Team" style="width: 100px; height: auto; max-width: 100%;" /> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,20 @@ export async function sendVerificationEmail( | |
|
||
const signature = "IMPAX TEAM"; | ||
|
||
// <a href="http://16.170.235.219:5000/accept-invitation/${invitationToken}">Verify Email Here</a> | ||
// <p>You've been created the team ${teamName}! Click the following link to verify your email:</p> | ||
// <a href="http://16.170.235.219:5000/accept-invitation/${invitationToken}">Verify Email Here</a><br><br> | ||
const mailOptions = { | ||
from: "[email protected]", | ||
to: recipientEmail, | ||
subject: "Notification Email", | ||
subject: "Verification Email", | ||
html: ` | ||
<p>Hello,</p> | ||
<p>You've been created the team ${teamName}!</p> | ||
<p>You've been created the team ${teamName}! Click the following link to verify your email:</p> | ||
<a href="http://localhost:5000/manager/accept-invitation/token/${invitationToken}" | ||
style="display: inline-block; padding: 10px 20px; background-color: #4CAF50; color: #ffffff; | ||
text-decoration: none; border-radius: 5px;">Verify Email Here</a><br><br> | ||
<div> | ||
<img src="cid:Impax" alt="Impax Team" style="width: 100px; height: auto; max-width: 100%;" /> | ||
</div> | ||
|
@@ -40,4 +45,5 @@ export async function sendVerificationEmail( | |
}; | ||
|
||
await transporter.sendMail(mailOptions); | ||
console.log("email sent successfully"); | ||
} |
Oops, something went wrong.