[Tutor] Sending e-mails
Marcel Preda
marcel@punto.it
Mon, 2 Oct 2000 19:27:57 +0200 (CEST)
On Mon, 2 Oct 2000, Furmanek, Greg wrote:
> Hi I was wondering if there is an easy way to
> send mail messages from the Python script.
>
> At this time I am using mailx command and it works
> pretty well, but I would like to do this without
> resorting to external programs.
>
smtplib module
lab02:~# python
Python 1.5.2 (#0, Sep 13 1999, 09:12:57) [GCC 2.95.1 19990816 (release)]
on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import smtplib
>>> print smtplib.__doc__
SMTP/ESMTP client class.
Author: The Dragon De Monsyne <dragondm@integral.org>
...
...
PM