Thanks a lot! I am not on my computer now, but I will try that tomorrow.
On Feb 5, 10:32 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > for now > > message=str(T('mail message')) > > instead of > > message=T('mail message') > > On Feb 5, 3:16 pm, aure <aureliengir...@googlemail.com> wrote: > > > I am using web2py Version 1.74.11 > > > But I upgraded today from source and copied my app to the applications > > folder. > > > On Feb 5, 8:43 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > 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.