No, I hadn't tried that.  I just did and it fixed it.  Is that the
recommended way to setup your mail server now?  I must have done it wrong a
long time ago and just kept replicating it.  It works on some of my
deployed apps, but not all of them.

-Jim


On Mon, Mar 24, 2014 at 4:49 PM, Niphlod <[email protected]> wrote:

> did you try with
>
> mail = auth.settings.mailer
> mail.settings.server .....
>
>
> ?
>
>
> On Monday, March 24, 2014 9:02:09 PM UTC+1, Jim S wrote:
>
>> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/mdz4qHx_nPI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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