email libraries in python?

  • From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 30 Dec 2008 09:55:29 -0700

Hello list,
I was trying to make a mail sender of sorts in python, and have a question.
#!/usr/bin/python2.5
import sys
import atexit
import smtplib
from email.mime.text import MIMEText
the compiler errors: I'm using 2.5, and it says email v4 was distributed with 
2.5... here's the error
Traceback (most recent call last):
  File "./email.py", line 4, in <module>
    import smtplib
  File "/usr/lib/python2.5/smtplib.py", line 46, in <module>
    import email.Utils
  File "/home/tyler/email.py", line 5, in <module>
    from email.mime.text import MIMEText
ImportError: No module named mime.text
tyler@tds:~$ 

Other related posts: