#11883: fix email examples by adding 'localhost' to SMTP constructor calls

This commit is contained in:
R David Murray 2011-04-30 17:26:32 -04:00
parent 9beb34ee0d
commit bb754b503c
3 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ must be running an SMTP server.
fp.write(composed)
fp.close()
else:
s = smtplib.SMTP()
s = smtplib.SMTP('localhost')
s.sendmail(opts.sender, opts.recipients, composed)
s.quit()