Hello Massimo,
I follow this thread with lot of interest and There is no such
utils.py in the "contrib" package..
There is Utils in the "gluon" package instead but no such "Mail" class
inside it...
I'm currently using the latest version of Web2py (1.61.4)
????
Thanks,
Yannick P.
On Mar 20, 7:20 pm, mdipierro <
mdipie...@cs.depaul.edu> wrote:
> python already provides smtplib. web2py has an interface to it.
>
> from gluon.contrib.utils import
> *
> mail=Mail
> ()
> mail.settings.server='
smtp.gmail.com:
> 587'
>
> mail.sender='...@
somewhere.com'
> mail.login=None or
> 'username:password'
> mail.send(to=
> ['...@
whatever.com'],subject='None',message='None')