我们编写了发送电子邮件的python代码。 密件抄送是一组2封电子邮件,没有cc。 即使没有CC,BCC电子邮件也会添加为CC。
以下是代码:
bcc = "x, y"
response = self.connection.send_email(
source = sender_mail,
subject = subject,
body = None,
to_addresses = to,
cc_addresses=None,
bcc_addresses=bcc,
format='html',
reply_addresses = None,
return_path = None,
text_body=None,
html_body=html
)
知道如何解决这个问题吗?
答案 0 :(得分:0)
bcc = "x, y"
不数组。而是去:
bcc = [x, y]