def copy_message(msg):
return EmailMultiAlternatives(
to=msg.to,
cc=msg.cc,
bcc=msg.bcc,
reply_to=msg.reply_to,
from_email=msg.from_email,
subject=msg.subject,
body=msg.body,
alternatives=getattr(msg, 'alternatives', []),
attachments=msg.attachments,
headers=msg.extra_headers,
connection=msg.connection)
评论列表
文章目录