I am using this code taken from here:
import smtplib def prompt(prompt): return raw_input(prompt).strip() fromaddr = prompt(\"From: \") toaddrs = prom
You're not running SMTP server on your machine.
see: No connection could be made because the target machine actively refused it