axcwg 3 months ago
parent
commit
8a0050c7bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -160,7 +160,7 @@ function Submit(req, res) {
         }catch(err){
 
         }
-        if (req.body.email !== undefined) {
+        if (req.body.email !== undefined && req.body.email !== "") {
             console.log(req.body.email)
             transporter.sendMail({
                 from: '"xiey0" <xiey0@qq.com>',