axcwg 5 달 전
부모
커밋
8a0050c7bb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>',