I'm working with a couple of applications where the password reset email
isn't sending. I'm getting this error:
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 217, in restricted
exec ccode in environment
File "/home/www-data/web2py/applications/ibc2/controllers/default.py"
<https://ibc-internalsite.industrialbuyers.com/admin/edit/ibc2/controllers/default.py>,
line 92, in <module>
File "/home/www-data/web2py/gluon/globals.py", line 372, in <lambda>
self._caller = lambda f: f()
File "/home/www-data/web2py/applications/ibc2/controllers/default.py"
<https://ibc-internalsite.industrialbuyers.com/admin/edit/ibc2/controllers/default.py>,
line 54, in user
return dict(form=auth())
File "/home/www-data/web2py/gluon/tools.py", line 1303, in __call__
return getattr(self, args[0])()
File "/home/www-data/web2py/gluon/tools.py", line 2927, in
request_reset_password
if self.email_reset_password(user):
File "/home/www-data/web2py/gluon/tools.py", line 2951, in
email_reset_password
message=self.messages.reset_password % d):
File "/home/www-data/web2py/gluon/tools.py", line 371, in send
raise Exception('Server address not specified')
Exception: Server address not specified
However, the server name is most definitely set in db.py.
# configure email
mail = Mail()
mail.settings.server = 'localhost'
mail.settings.sender = '[email protected]'
mail.settings.login = None
mail.settings.tls = False
I seem to be missing something here, but can't figure out what it might be.
Any pointers from anyone?
-Jim
--
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.