tasks.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:infosec_mentors_project 作者: andMYhacks 项目源码 文件源码
def send_email( app, to, subject, template ):
    msg = Message( subject,
                   recipients=[to],
                   html=template,
                   sender=app.config['MAIL_DEFAULT_SENDER'])
    # with app.app_context():
    #     mail.send(msg)
    thr = Thread( target = send_async_email, args = [app, msg])
    thr.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号