update 项目配置
This commit is contained in:
parent
3179437419
commit
41a036d336
10
app.py
10
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()
|
||||
|
|
Loading…
Reference in New Issue