You need to add:
auth.settings.registration_requires_verification = False
and customize your email message:
auth.messages.verify_email = \
'Click on the link http://...verify_email/%(key)s to
verify your email'
Massimo
On Jul 29, 3:23 pm, David Zejda <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I have this code:
>
> from gluon.tools import Mail, Auth, Recaptcha
>
> mail=Mail()
> mail.settings.server='mail.mydomain.net:25'
> mail.settings.sender='[email protected]'
> mail.settings.login=None
>
> auth = Auth(globals(), db)
> auth.define_tables()
> auth.settings.mailer = mail
> auth.settings.captcha =
> Recaptcha(request,public_key='<my_key>',private_key='<my_key>')
>
> The problem is, that there are no validation mails being sent in
> registration process. As a result of accepting register form, the user
> becomes logged on immediately. I have suspicion, that the problem arised
> as a result of web2py upgrade, but I am not sure in this. The mail
> object itself works, I can manually send e-mails with no problem.
>
> Please, what should I examine?
>
> Thanks!
> D.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org
>
> iEYEARECAAYFAkpwr9EACgkQ3oCkkciamVFQygCguU+fpInfIq+Up2p4Q1TOEozB
> GCgAn2LUqWcIBzdpta7K3QyXN1g+Ljok
> =uU9B
> -----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---