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 = 'x...@gmail.com'
In [5] : mail.settings.login = 'x...@gmail.com:yyy'
ALTERNATIVELY: I used "[5] : mail.settings.login = 'xxx:yyy'"
In [6] : q=mail.send('t...@zz.com', 'Message subject', 'Plain text body of 
the message')
Traceback (most recent call last):
  File "/home/mmb21167/web2py/billionlaw/gluon/contrib/shell.py", line 235, 
in run
    exec compiled in statement_module.__dict__
  File "<string>", line 1, in <module>
  File "/home/mmb21167/web2py/billionlaw/gluon/tools.py", line 437, in send
    raise Exception('Server address not specified')
Exception: Server address not specified

This seems to be right out of the book. Running on Python anywhere.....Am I 
missing something....

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to