From 41a036d336f3b750ae86c8cade3d1c3336c33d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Fri, 18 Jun 2021 16:58:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index 01067bb..b55f3fc 100644 --- a/app.py +++ b/app.py @@ -4,11 +4,11 @@ from threading import Thread app = Flask(__name__) -app.config['MAIL_SERVER'] = 'smtp.163.com' +app.config['MAIL_SERVER'] = 'smtp.exmail.qq.com' app.config['MAIL_PORT'] = 25 app.config['MAIL_USE_TLS'] = True -app.config['MAIL_USERNAME'] = 'fecribd@163.com' -app.config['MAIL_PASSWORD'] = 'NSBFBXRGKBKLUMMG' +app.config['MAIL_USERNAME'] = 'fecribd@fecr.com.cn' +app.config['MAIL_PASSWORD'] = 'BUSUieYfdy8u7ngX' mail = Mail(app) @@ -35,10 +35,6 @@ def send_mail(): return "邮件已发送" -@app.route('/', methods=['GET']) -def index(): - return {"info": "server_mail"} - if __name__ == '__main__': app.run()