如何在下面格式化 CC 列表?
我应该添加'CC:test@test.com;test1@test.com'吗?
CC = ['test@test.com','test1@test.com']
header = 'To:' + TO_ADDRESS + '\n' + 'From: ' + FROM_ADDRESS + '\n' + 'Subject:' + SUB_ADD + '\n'
msg = header + '\n' + TEXT_INSERT'server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.ehlo()
server.login(FROM_ADDRESS, PASSWORD)
server.sendmail(FROM_ADDRESS, TO_ADDRESS, msg)
server.close()