Browse Source

修改发送邮件端口

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 5 years ago
parent
commit
88de135d5f
1 changed files with 3 additions and 1 deletions
  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'])