which version of web2py are you using? This was fixed recently I
think.

On Feb 5, 1:41 pm, aure <aureliengir...@googlemail.com> wrote:
> Hi everyone,
>
> I am trying to make my application send a mail. It works fine using:
>
> mail.send(to=[mail_to], subject='myApp request', message='mail
> message')
>
> But if I use T(...) in the message:
>
> mail.send(to=[mail_to], subject='myApp request', message=T('mail
> message'))
>
> I get this error:
>
> mail.send(to=[mail_to], subject='LibresLivres email: book request',
> message=T('mail message'))
>   File "/home/aurelien/Documents/web2py/gluon/tools.py", line 283, in
> send
>     text = text.read().decode(encoding).encode('utf-8')
> AttributeError: 'lazyT' object has no attribute 'read'
>
> Is there a simple reason why it does not work?
>
> Thanks,
> Aurelien

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to