发邮件的python脚本

上传:dcaic 浏览: 24 推荐: 0 文件:PDF 大小:19.08KB 上传时间:2020-12-22 20:16:17 版权申诉
发邮件的python脚本 #!/usr/bin/python #coding:utf-8 import smtplib from email.mime.text import MIMEText import sys mail_user = '发件人邮箱' # 发件人的邮箱 mail_pass = '邮箱授权码' # 邮箱的授权码 def send_mail(to_list,subject,content): me = "zabbix 监控告警平台"+"" msg = MIMEText(content, 'plain', 'utf-8') msg['Subject'] =
上传资源
用户评论