开发者

How to send mail in hotmail using Python?

Is there a way to login my hotmail account and send mails 开发者_StackOverflow中文版with a Python program?


You can try using their SMTP server:

  • User name: Your Windows Live ID, for example yourname@hotmail.com
  • Password: The password you usually use to sign in to Hotmail or Windows Live
  • SMTP server: smtp.live.com (Port 25) {Note: If port 25 has been blocked in your network or by your ISP, you can set SMTP port to 587 with TLS or SSL Encryption depending on the client in use}
  • Authentication required? Yes (this matches your POP username and password)
  • TLS/SSL required? Yes

Use smtplib to send mail. You can find some examples here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜