ming 3 năm trước cách đây
mục cha
commit
aafc374bc1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/mailer.py

+ 1 - 1
api/mailer.py

@@ -18,7 +18,7 @@ def send(msg):
         server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
         server.ehlo()
         server.login(gmail_user, gmail_password)
-        server.sendmail(sent_from, to,  'test mail')
+        server.sendmail(sent_from, to, msg)
         server.close()
         print ('Email sent!')
     except: