Hello everyone,
I am trying to send an email (html and txt) but it fails. I tried to
simplify my code in order to test it.

mail.send(to='[email protected]',subject='test',message='test')

But i am getting:
File "/Users/panosjee/Documents/Work/web2py/gluon/tools.py", line 302,
in send
    attachment.attach(MIMEText.MIMEText(text,_charset='utf-8'))
  File "/Library/Python/2.5/site-packages/email-4.0.2-py2.5.egg/email/
__init__.py", line 79, in __getattr__
ImportError: No module named text

Any clue? ( i ve read the tools.py and the text variable should be
string but web2py i looking for a module ?)

Reply via email to