how to send email in python?

Grant Edwards grante at visi.com
Fri Feb 9 22:18:53 CET 2001


In article <h7av7t8ssi6v9djasb3mo3n7d7vigp16a1 at 4ax.com>, Sheila King wrote:
>On Tue, 06 Feb 2001 18:20:26 +1100, Sam Wun <swun at esec.com.au> wrote in
>comp.lang.python in article <3A7FA5BA.82FB7593 at esec.com.au>:
>
>:does anyone knows? I am using python 1.6.
>
>
>Here is one way:
>
>-------------------------------------------
>import smtplib

[...]

If you want to get fancy, you can use the MimeWriter module to
prepare the message.  That way you can do attachments and all
that sort of stuff.

-- 
Grant Edwards                   grante             Yow!  Hello. Just walk
                                  at               along and try NOT to think
                               visi.com            about your INTESTINES being
                                                   almost FORTY YARDS LONG!!



More information about the Python-list mailing list