Hello everyone,
I want to reset password in my application if someone forgets it but it
does not seem to work I dont get how to setup the mail server below are my
two models I dont know what I need to configure that it works.
#Email Server Configuration
models/db.py
mail = auth.settings.mailer
mail.settings.server = 'logging' or 'smtp.gmail.com:587'
mail.settings.sender = 'si@gmail.com'
mail.settings.login = True
apllication/applicationname/models/db.py
# configure email
# -
mail = auth.settings.mailer
mail.settings.server = 'logging' if request.is_local else
configuration.get('smtp.server')
mail.settings.sender = configuration.get('smtp.sender')
mail.settings.login = configuration.get('smtp.login')
mail.settings.tls = configuration.get('smtp.tls') or False
mail.settings.ssl = configuration.get('smtp.ssl') or False
--
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/a28f093e-7d96-4490-9284-530fa869faf9n%40googlegroups.com.