开发者

How to send mail in hotmail using Python?

开发者 https://www.devze.com 2022-12-25 02:13 出处:网络
Is there a way to login my hotmail account and send mails 开发者_StackOverflow中文版with a Python program?You can try using their SMTP server:

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

精彩评论

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

关注公众号