django发邮件,怎么暗送?
现在用的EmailMultiAlternatives,配置的时候就是
EmailMultiAlternatives(subject, html_content, 'hoster@qq.com', send_to)
怎么配置BCC?还是要用别的方法?非常感谢
django发邮件,怎么暗送?
现在用的EmailMultiAlternatives,配置的时候就是
EmailMultiAlternatives(subject, html_content, 'hoster@qq.com', send_to)
怎么配置BCC?还是要用别的方法?非常感谢
def __init__(self, subject='', body='', from_email=None, to=None, bcc=None, connection=None, attachments=None, headers=None, cc=None, reply_to=None): 你这个在后面加一个参数 (暗送的收件人/组即可) EmailMultiAlternatives(subject, html_content, 'hoster@qq.com', send_to,bcc)