Cari
1 buku memuat "smtplib smtp localhost"
Python: email
… or store the message composed = outer.as_string() if opts.output: fp = open(opts.output, 'w') fp.write(composed) fp.close() else: s = smtplib.SMTP('localhost') s.sendmail(opts.sender, opts.recipients, composed) s.quit() if __name__ == '__main__': main()