If you want to send email from a google apps domain and you have admin 
access, this gist may be interesting. 
It's a REST api so non-blocking, in case you don't want to despatch email 
sends to the scheduler. 
You need to register a project at Google Developer Console, get a client ID 
and key for a service account, use admin access on the Google Apps domain 
to authorise the service account, and install a couple of PyPI modules (one 
of which is pyOpenSSL and may not be trivial to install).

This is tested so far on Windows Server 2008 R2 ActiveState Python 2.7.8 
and an early version was tested on OS X  with Macports python 2.7.8.

The API is powerful although my code only demonstrates mail sending. 

https://gist.github.com/timrichardson/1154e29174926e462b7a#file-0_-gmail-api-for-service-accounts-python-2-7




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