thank you for your reply Stifan.
Iam able to send it to the console. But when Iam trying to send it to
gmail, its getting failed.
This is the code I used.

from gluon.tools import Mail
mail = Mail()
mail.settings.server = 'logging'
mail.settings.sender = 'y...@example.com'
mail.settings.login = 'None

This is the code used for sending to gmail.....
from gluon.tools import Mail
mail = Mail()
mail.settings.server = 'smtp.gmail.com:25'
mail.settings.sender = 'm...@gmail.com'
mail.settings.login = 'm...@gmail.com:pswd'

Can you please let me know what mistake Iam doing.


'

On Sun, Jun 21, 2015 at 11:57 AM, 黄祥 <steve.van.chris...@gmail.com> wrote:

> please read the book, with ascending order.
> 1. setting up email (normally in models/db.py)
> 2. sending email (can be put in models, controllers or modules)
>
> best regards,
> stifan
>
> --
> 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.
>



-- 
Chaitanya Pochampally

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