if I go to command line on python cell then this code works fine.
When I tested on python shell or on command line (This code wors fine I can get email via gmial SMTP) from gluon.tools import Mail mail = Mail() mail.settings.server = 'smtp.gmail.com:587' mail.settings.sender = '[email protected]' mail.settings.login = '[email protected]:password' mail.send(to='[email protected]', message='test') But when I use this code in controller (default.py) then it does not work (I can not send email)!!! def test(): mail = Mail() mail.settings.server = 'smtp.gmail.com:587' mail.settings.sender = '[email protected]' mail.settings.login = '[email protected]:password' mail.send(to='[email protected]', message='test') I also tested with outlook.com same problem happend Looking forwrd to hrer you!!! -- 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.

