auth.settings.mailer=mail
On Jan 23, 9:54 pm, Wes James <compte...@gmail.com> wrote:
> I have a copy here. This is what I have:
>
> from gluon.utils import *
> auth=Auth(globals(),db)
> auth.define_tables()
> crud=Crud(globals(),db)
>
> # so that registration requires email verification
>
> mail=Mail()
> mail.settings.server='...'
> mail.settings.sender='...'
> mail.settings.login=''
> auth.settings.mail=mail
>
> # so that registration will use recaptcha
> #auth.settings.captcha=RECAPTCHA(request,public_key='RECAPTCHA_PUBLIC_KEY',private_key='RECAPTCHA_PRIVATE_KEY')
>
> crud.auth=auth
>
> -wj
>
> On Fri, Jan 23, 2009 at 5:16 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > you did not do the Mail part
>
> > mail=Mail()
> > mail.server='...'
> > mail.sender='...'
> > mail.login='...'
> > auth.settings.mailer=mail
>
> > Massimo
>
> > On Jan 23, 3:09 pm, Wes James <compte...@gmail.com> wrote:
> >> On Fri, Jan 23, 2009 at 12:10 PM, mdipierro <mdipie...@cs.depaul.edu>
> >> wrote:
>
> >> > I am reposting this because I renamed the file
>
> >> > I have a preliminary version of inclusion if T2 functionality into
> >> > web2py core. I am not yet promising backward compatibility here. The
> >> > module name many change. For now it is in trunk as gluon/utils.py
>
> >> tried retrieve password and got:
>
> >> gluon/utils.py", line 571, in retrieve_password
> >> self.settings.mailer.send(to=form.vars.email,
> >> AttributeError: 'NoneType' object has no attribute 'send'
>
> >> -wj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@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
-~----------~----~----~----~------~----~------~--~---