def __send_email_async(app, msg):
"""
Helper function to make send emails asynchronously (there' no point making the user wait for the email to be sent)
:param app: the flask app
:param msg: the msg object from Flask Mail
:return: None
"""
with app.app_context():
mail.send(msg)
评论列表
文章目录