[Tutor] sendmail
Joerg Woelke
lumbricus@gmx.net
Fri, 5 Oct 2001 01:13:45 +0200
On Thu, Oct 04, 2001 at 04:52:54PM -0400, Ignacio Vazquez-Abrams wrote:
> On Thu, 4 Oct 2001, Jerry Lake wrote:
>
> > does anyone have a quick script
> > I can use to see if my sendmail
> > is working ?
>
> import smtplib
>
> cxn=smtplib.SMTP('localhost')
> cxn.quit()
or:
import os
os.system("telnet localhost 25")
SCNR
J"o! ;-)
--
Distrust all those who love you extremely upon a very slight acquaintance
and without any visible reason.
-- Lord Chesterfield