Python Will Not Send Email!!
Victor Subervi
victorsubervi at gmail.com
Fri Nov 20 10:49:17 EST 2009
On Fri, Nov 20, 2009 at 11:05 AM, Kev Dwyer <kevin.p.dwyer at gmail.com> 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__
'3.0.1'
>>>
[root at 13gems cart]# ls /usr/lib64/python2.4/email/
base64MIME.py Encoders.pyo Generator.pyc Iterators.py
MIMEAudio.pyo MIMEMessage.pyc MIMEText.py Parser.pyo
base64MIME.pyc Errors.py Generator.pyo Iterators.pyc
MIMEBase.py MIMEMessage.pyo MIMEText.pyc quopriMIME.py
base64MIME.pyo Errors.pyc Header.py Iterators.pyo
MIMEBase.pyc MIMEMultipart.py MIMEText.pyo quopriMIME.pyc
Charset.py Errors.pyo Header.pyc Message.py
MIMEBase.pyo MIMEMultipart.pyc _parseaddr.py quopriMIME.pyo
Charset.pyc FeedParser.py Header.pyo Message.pyc
MIMEImage.py MIMEMultipart.pyo _parseaddr.pyc test
Charset.pyo FeedParser.pyc __init__.py Message.pyo
MIMEImage.pyc MIMENonMultipart.py _parseaddr.pyo Utils.py
Encoders.py FeedParser.pyo __init__.pyc MIMEAudio.py
MIMEImage.pyo MIMENonMultipart.pyc Parser.py Utils.pyc
Encoders.pyc Generator.py __init__.pyo MIMEAudio.pyc
MIMEMessage.py MIMENonMultipart.pyo Parser.pyc Utils.pyo
Any other ideas?
TIA,
V
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091120/725a81de/attachment-0001.html>
More information about the Python-list
mailing list