python发送email
来源:互联网 发布:三菱编程实例100 编辑:程序博客网 时间:2024/05/07 13:38
#!/usr/bin/env python#send_simple_email_by_account.py @2014-08-18#author: orangleliuimport smtplibfrom email.mime.text import MIMETextSMTPserver = 'smtp.qq.com'sender = '12345678@qq.com'destination = 'typ123456@qq.com'password = "impasswd"message = 'I send a message by Python. hello'msg = MIMEText(message)msg['Subject'] = 'Test Email by Python'msg['From'] = sendermsg['To'] = destinationmailserver = smtplib.SMTP(SMTPserver, 25)mailserver.login(sender, password)mailserver.sendmail(sender, [destination], msg.as_string())mailserver.quit()print 'send email success'
测试成功
0 0
- Python发送Email
- Python 发送Email
- python 发送Email程序
- python发送email
- python实现发送email
- Python 发送Email
- python 简单email发送
- Python发送邮件(Email SMTP)
- python发送Email 带附件
- python 发送email到qq
- python 发送email到qq
- Python 发送email的方法
- Python QQ 发送Email SMTP
- python网络爬虫-Email发送
- 【转】用Python发送email示例
- 发送email给列表中的邮箱--python
- [Python] 发送email的几种方式
- python 简单的发送email方法
- java 考试复习整理——JAVA类和类成员的修饰符
- 语法基本循环控制
- <10>Android HAL 硬件抽象层模块的加载过程
- springboot-2
- Eclipse中修改作者变量${user}
- python发送email
- 网页设计中常用的20个Web安全字体
- (转)如何在Eclipse中查看JDK类库的源代码
- Sping Security-授权
- Swift语言迈出侵蚀Androidd第一步
- 《秘密》卷一:秘密-秘密的发现
- 【Android】获取手机中已安装apk文件信息(PackageInfo、ResolveInfo)(应用图片、应用名、包名等)
- 编码转换函数
- 代码插入测试