import os
import smtplib
from email.mime.text import MIMEText
from email.header import Header
sender = ' '
receiver = 'i '
smtpObj = smtplib.SMTP()
smtpObj.connect('smtp.fmsh.com.cn',25)
print('connect\n')
smtpObj.login(' ',' ')
message = MIMEText('crontab test','plain','utf-8')
message['From']=Header('test email','utf-8')
message['Subject']=Header('test subject','utf-8')
smtpObj.sendmail(sender,receiver,message.as_string())
相关文章
- 03-13Leetcode_111_Minimum Depth of Binary Tree
- 03-1312 二叉树的最小深度(leecode 111)
- 03-13leetcode 111
- 03-13ARC111 B - Reversible Cards(思维+树的判断)
- 03-13测试111
- 03-13ARC111
- 03-132021-02-17:规定1和A对应、2和B对应、3和C对应...26和Z对应,那么一个数字字符串比如“111”就可以转化为:“AAA“、“KA“和“AK“。给定一个只有数字字符组成的字符串str,请
- 03-13leetcode 397,784,898,100,101,104,108,110,111,112,226,235,257
- 03-13华为AR-111S路由器GRE协议设置
- 03-13leetcode 111 二叉树的最小深度