python實現多個郵箱作為SMTP服務器,並將指定的文件下文件逐一發給目標收件人
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
#郵箱配置
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]','
Detailed explanation python3 A
One . explain : This project a