代码: 1 # -*- coding: utf-8 -*- 2 3 import smtplib, ssl 4 from email.mime.text import MIMEText 5 from email.mime.multipart import MIMEMultipart 6 7 8 def send_email_with_custom_smtp(sender_email, receiver_email, server, port, usr, password, subject, te…