before the mail.send print mail.settings.sender. It is possible this value 
is reset somewhere else. It should work

On Monday, 3 August 2015 16:04:36 UTC-5, Mark Billion wrote:
>
> Im pulling straight from the book and running on python anywhere, so Im a 
> bit confused:
>
> web2py Shell 2.11.2-stable+timestamp.2015.05.30.16.33.24
> In [1] : from gluon.tools import Mail
>
> In [2] : mail = Mail()
>
> In [3] : mail.settings.server = 'smtp.gmail.com:465'
>
> In [4] : mail.settings.sender = '[email protected]'
>
> In [5] : mail.settings.login = '[email protected]:b' ==> Alt (Ive used both): In 
> [5] : mail.settings.login = 'a:b'
>
> In [6] : q=mail.send('[email protected]', 'Message subject', 'Plain text body 
> of the message')
> Traceback (most recent call last):
>   File "......gluon/contrib/shell.py", line 235, in run
>     exec compiled in statement_module.__dict__
>   File "<string>", line 1, in <module>
>   File "....gluon/tools.py", line 437, in send
>     raise Exception('Server address not specified')
> Exception: Server address not specified
>
> Any thoughts?
>

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