Python Will Not Send Email!!

Victor Subervi victorsubervi at
Fri Nov 20 16:49:17 CET 2009

On Fri, Nov 20, 2009 at 11:05 AM, Kev Dwyer <kevin.p.dwyer at> wrote:

> I ran your script on a CentOS vm (5.2 server 32bit, not quite the same as
> yours but also running python 2.4.3).  It ran without error.  So I
> suspect that either you have a rogue email module/package on your machine
> or there's something wrong with the python install.
> You could try:
> import email
> email.__version__
> My interpreter responds "3.0.1"  If you get a different response that
> suggests a dodgy module somewhere - try email.__file__ and see where it's
> located (my interpreter returns /usr/lib/python2.4/email/__init__.pyc).
> If the version number is "3.0.1" on your machine then I would check the
> contents of /usr/lib64/python2.4/email/.  Perhaps the base64MIME module
> is missing.

>>> import email
>>> email.__version__
[root at 13gems cart]# ls /usr/lib64/python2.4/email/   Encoders.pyo    Generator.pyc
MIMEAudio.pyo   MIMEMessage.pyc     Parser.pyo
base64MIME.pyc       Generator.pyo  Iterators.pyc     MIMEMessage.pyo       MIMEText.pyc
base64MIME.pyo  Errors.pyc      Iterators.pyo
MIMEBase.pyc      MIMEText.pyo    quopriMIME.pyc      Errors.pyo      Header.pyc
MIMEBase.pyo    MIMEMultipart.pyc   quopriMIME.pyo
Charset.pyc   Header.pyo     Message.pyc    MIMEMultipart.pyo     _parseaddr.pyc  test
Charset.pyo     FeedParser.pyc    Message.pyo
MIMEImage.pyc   _parseaddr.pyo     FeedParser.pyo  __init__.pyc
MIMEImage.pyo   MIMENonMultipart.pyc       Utils.pyc
Encoders.pyc    __init__.pyo   MIMEAudio.pyc  MIMENonMultipart.pyo  Parser.pyc      Utils.pyo

Any other ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list