i did change the parameters but those were the problem. when it said
"invalid email" that was confusing -- i didn't realize it meant it had
trouble sending the email. when i changed it to a server with the
proper credentials, it worked correctly. thank you for that.

it might be worthwhile changing that error from "invalid email" to
something like "error sending email." but i saw there are also more
posts about error messages so you may already be doing that.

thank you,

matt

On Aug 1, 3:45 pm, mdipierro <[email protected]> wrote:
> Did you change the parameters in the following 3 lines?
>
> mail.settings.sender="[email protected]"
> mail.settings.login="[email protected]:password" or None # if no TLS
> auth.captcha=Recaptcha("public_key", "private_key")
>
> If the email is invalid it means it cannot send the email. This may be
> because it cannot connect to the server.
>
> With captcha. If you get an error, it may be because you do not have
> valid keys from recaptcha.com
>
> On Aug 1, 2:38 pm, mattynoce <[email protected]> wrote:
>
> > hi, i'm having the following problem. i want to have email
> > verification, so i added in the following lines from the pdf on the
> > homepage (and changed the mail settings for my server):
>
> > from gluon.tools import *
>
> > mail=Mail()
> > mail.settings.server="smtp.example.com:25"
> > mail.settings.sender="[email protected]"
> > mail.settings.login="[email protected]:password" or None # if no TLS
> > auth=Auth(globals(),db)
> > auth.mailer=mail
> > auth.settings.registration_requires_verification = False
> > auth.define_tables()
> > #auth.captcha=Recaptcha("public_key", "private_key")
> > auth.messages.verify_email = """Click on the link
> >    http://127.0.0.1:8000/app/default/user/verify_email/%(key)s
> > to verify your email, thanks for registering."""  #### IMPORTANT!
>
> > note that i commented out the captcha part because it was causing
> > errors for me.
>
> > when registration_requires_verification = False, i can register
> > properly. but when i set registration_requires_verification = True, it
> > tells me i have an invalid email when i submit. any idea what i'm
> > doing wrong?
>
> > my controller function for user is simply:
> > def user(): return dict(form=auth())
>
> > i have recently upgraded from 1.56 to 1.65, so it's possible it's an
> > upgrade error. thanks for any help.
>
> > matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to