smtplib.SMTP "no attributes SMTP"

Christos TZOTZIOY Georgiou tzot at
Sat Jul 31 20:39:27 CEST 2004

On Sat, 31 Jul 2004 13:32:59 -0400, rumours say that Copelandia
Cyanescens <synesthesia at> might have written:

>Python Python 2.3.4, Windows, "clean" install, using the example code
>given in the documentation, I get this...
>Traceback (most recent call last):
>  File "C:\projects\email\", line 24, in ?
>    server = smtplib.SMTP('')
>AttributeError: 'module' object has no attribute 'SMTP'

Have you created a file somewhere in your python path?
Perhaps you named as such the file with the example code from the

>I beg to differ, it most certainly does. Right? :)

Yes, the std lib does have an SMTP class.
TZOTZIOY, I speak England very best,
"Tssss!" --Brad Pitt as Achilles in unprecedented Ancient Greek

More information about the Python-list mailing list