python3之發送郵件
#/usr/bin/env python3 # encoding: utf-8 [email protected]: Lejie [email protected]: PyCharm Community Edition [email protected]: learn_smtp.py [email protected]: 2017/6/26 16:29 import smtplib import email.mime.multipart import email.mime.text from email.mime.application import MIMEApplication msg = email.mime.multipart.MIMEMultipart() #定義郵件對象 # print(msg,type(msg)) msg[‘from‘] = [email protected]