Why can't I send a mail to myself using python smtplib?

前端 未结 1 949
灰色年华
灰色年华 2020-12-21 08:10

I am using this code taken from here:

import smtplib

def prompt(prompt):
    return raw_input(prompt).strip()

fromaddr = prompt(\"From: \")
toaddrs  = prom         


        
相关标签:
1条回答
  • 2020-12-21 08:41

    You're not running SMTP server on your machine.

    see: No connection could be made because the target machine actively refused it

    0 讨论(0)
提交回复
热议问题