By playing with earlier versions, I established that 2.12.3 did not seem to 
have this problem. The problem was in both earlier and later versions. 
Don't know if 2.12.3 was the only version without the problem.

On Friday, January 6, 2017 at 6:51:16 PM UTC-5, David Manns wrote:
>
> Running 2.14.6 in production on GAE. Notice can't send the verification's 
> so can't register or recover passwords. (have another problem with lost 
> passwords which reported separately).
>
> Using all the standard setup to initialize auth.settings.mailer in db.py 
> AND that same auth.settings.mailer is used elsewhere to send out regular 
> emails, which works fine!
>
> in db.py:
>
> mail = auth.settings.mailer
> if request.env.web2py_runtime_gae:            # if running on Google App 
> Engine
>     mail.settings.server = 'gae'
>     mail.settings.login = None              # your credentials or None
> else:    # development environment with Web2py alone
>     mail.settings.server = myconf.get('smtp.server')
>     mail.settings.login = myconf.get('smtp.login')
> mail.settings.sender = myconf.get('smtp.sender')
> mail.settings.tls = myconf.get('smtp.tls') or False
> mail.settings.ssl = myconf.get('smtp.ssl') or False
>
> # -------------------------------------------------------------------------
> # configure auth policy
> # -------------------------------------------------------------------------
> auth.settings.create_user_groups = False
> auth.settings.mailer = mail                    # for user email 
> verification
> auth.settings.registration_requires_verification = True
> auth.messages.verify_email = u'Click on the link 
> http://'+request.env.http_host+URL('default','user',args=['verify_email'])+'/%(key)s
>  
> to verify your email'
> auth.settings.reset_password_requires_verification = True
> auth.messages.reset_password = u'Click on the link 
> http://'+request.env.http_host+URL('default','user',args=['reset_password'])+'/%(key)s
>  
> to reset your password'
> #auth.settings.registration_requires_verification = True
> auth.settings.registration_requires_approval = False
> #auth.settings.reset_password_requires_verification = True
> ,,,
>
> in appconfig.ini:
>
> [smtp]
> server = smtp.gmail.com:587
> sender = "Oxford & Cambridge Society" <email address>
> login  = <username>:<password>
> tls    = true
> ssl    = false
>
> As an aside, I originally had ssl =true but this caused unreliable message 
> delivery in the web2py development environment. Adding the unicode 
> indicator to the auth.message. settings made no difference.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to