瀏覽代碼

Changed the email message

rota3015 9 月之前
父節點
當前提交
56f4c8f07c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      controllers/emailController.js

+ 3 - 3
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) {