python Implement multiple mailboxes as SMTP The server , And send the designated documents to the target recipients one by one
import os
import random
import sys
import time
import mimetypes
import smtplib
from email import encoders
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email.mime.text import MIMEText
# Mailbox configuration
smtp_server = "smtp.163.com"
username = ["[email protected]","xxx_2
@163.com","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"]
password = ["XXXXXXXXXXX","XXXXXXXXXXX","XXXXXXXXXXX","XXXXXXXXXXX","XXXXXXXXXXX","XXXXXXXXXXX","XXXXXXXXXXX","XXXXXXXXXXXXXXXXXXXXXX","XXXXXXXXXXXXXXXXXXXXXX","XXXXXXXXXXX"]
sender = username
receivers = ['[email protected]','