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)
评论列表
文章目录