send mail by SMTP server (Python)
来源:互联网 发布:java 键盘输入 编辑:程序博客网 时间:2024/06/06 11:38
python发送邮件,smtp服务器用新浪
import smtplibFROMADDR = "anit_nait@sina.com"LOGIN = FROMADDRPASSWORD = "xxxxxx"TOADDRS = ["xxx@sina.com","xxx@hpe.com"]SUBJECT = "hello world from smtp.sina.com server"msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n" % (FROMADDR, ", ".join(TOADDRS), SUBJECT) )msg += "Hello world is successful.\r\nThe email is from sina smtp server\r\n"server = smtplib.SMTP('smtp.sina.com', 25)server.set_debuglevel(1)server.ehlo()server.starttls()server.login(LOGIN, PASSWORD)server.sendmail(FROMADDR, TOADDRS, msg)server.quit()
阅读全文
0 0
- send mail by SMTP server (Python)
- python smtp send mail
- Smtp Send mail
- Power shell Send mail by exchanges server
- Send Mail By CDO
- AX fail to send mail by SMTP , COM error code 0x80040211, 0x8004020f
- python stmplib send mail
- python send mail
- A Client to Send SMTP Mail
- Fixed SMTP Mail Send Validation Error
- Send mail using Gmail SMTP in Magento
- SMTP and POP3 Mail Server
- Python example for send mail with attachment by calling office outlook
- Caused by: javax.mail.NoSuchProviderException: smtp
- Sql Server Job VBScript Send Mail
- bluemail-iOS使用SMTP发送邮件 send mail via SMTP at iOS
- 使用Python发送E-Mail (SMTP协议)
- 解决530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
- Android常用控件三之按钮、选择框
- 使用HTML5的Server-sent技术,Go服务器向页面推送消息
- RestFul接口调试返回对应编码结果
- 树和二叉树基本概念以及二叉树遍历
- Spring 拦截器
- send mail by SMTP server (Python)
- windoows
- Ajax基本使用
- java多态
- java学习(20) -- 数据库MySql(二)
- django 分页功能的实现
- jQuery选择器
- mysql Access denied for user 'root'
- 如何用git将项目代码上传到github