Explorar o código

修改发送邮件端口

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag %!s(int64=5) %!d(string=hai) anos
pai
achega
88de135d5f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      flask_app.py

+ 3 - 1
flask_app.py

@@ -8,7 +8,9 @@ from flask_apscheduler import APScheduler
 from email_util import EmailUtil
 import decimal
 from report_push import ReportPush
+from flask_mail import Mail, Message
 
+mail = Mail()
 
 app = Flask(__name__)
 # app.config.from_object(Config())
@@ -203,7 +205,7 @@ def tongce_update_rule():
 def send_mail():
     mail = EmailUtil()
     mail.send_test()
-    return 'success'
+    return '<h1>邮件发送成功</h1>'
 
 
 @app.route('/update_other_city', methods=['GET', 'POST'])