On May17, 4:55pm, PanosJee <panos...@gmail.com> wrote:
> 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='panos...@gmail.com',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 ?)


Strange. Try to isolate the problem with fewer code. If you can
reproduce the problem without gluon/tools.py, you probably find a bug
for email lib itself. :)

Reply via email to