basic.py 文件源码

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

项目:flask_example 作者: flyhigher139 项目源码 文件源码
def send_mails(recipients, cc, mail_title, mail_body):
    msg = Message(mail_title)
    msg.body = mail_body

    msg.sender = current_app._get_current_object().config['MAIL_USERNAME']
    msg.recipients = recipients
    msg.cc = cc

    mail.send(msg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号