Skip to content

Commit

Permalink
Update emailService to include approved by email in verification email
Browse files Browse the repository at this point in the history
  • Loading branch information
kvineet002 committed Aug 25, 2024
1 parent 729524f commit 735973d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Backend/services/emailService.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const emailService = {
const email=requestDetails["Sender email"]
const senderName=requestDetails["Sender Name"]
const requestBody=requestDetails.subject
const ApprovedByEmail=requestDetails["Request sent to"]
let transporter = nodemailer.createTransport({
host: 'smtp.office365.com',
port: 587,
Expand Down Expand Up @@ -107,7 +108,8 @@ const emailService = {
<h2>Congratulations, ${senderName}!</h2>
<p>Your request has been successfully verified. Below is the summary of your request:</p>
<div class="request-body">
<p>${requestBody}</p>
<p>Re:${requestBody}</p>
<p>Approved By:${ApprovedByEmail}</p>
</div>
<p>Thank you for using our portal!</p>
</div>
Expand Down

0 comments on commit 735973d

Please sign in to comment.