From 56f4c8f07cf8791f7b2b1b7f70cb0c90375214a3 Mon Sep 17 00:00:00 2001 From: rota3015 Date: Mon, 18 Mar 2024 02:33:57 +0000 Subject: [PATCH] Changed the email message --- controllers/emailController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/emailController.js b/controllers/emailController.js index 32ce916..7a13ba6 100644 --- a/controllers/emailController.js +++ b/controllers/emailController.js @@ -50,10 +50,10 @@ exports.validateOtp = async (req, res) => { function sendMail(otp, email, req) { const mailOptions = { - from: 'communityrule@medlab.host', // Replace with your email address + from: 'communityrule.app@medlab.host', // Replace with your email address to: email, // Replace with the recipient's email address - subject: 'Logging code for community rule', - text: 'Code for logging into commnunity rule is ' + otp, + subject: 'Login code for commnunityRule', + text: 'Login code for CommunityRule: ' + otp, }; transporter.sendMail(mailOptions, (error, info) => { if (error) {