This git repository helps you to send emails quickly and easily through SendGrid on Google App Engine using Python.
Create an SendGrid account at http://sendgrid.com/pricing.html
Create an account at https://appengine.google.com/ and set up your local machine with the client tools https://developers.google.com/appengine/docs/python/gettingstartedpython27/devenvironment
Create an application on https://appengine.google.com/start/createapp
Clone project on your local machine
git clone https://github.com/sendgrid/google-python-sample-app
###Configuration###
Configure googleSendgridPython.py file with your information:
Update the <sendgrid_username> and <sendgrid_password> with your SendGrid credentials.
s = Sendgrid('<sendgrid_username>', '<sendgrid_password>', secure = True)Update the <from_address> with your email address
message = Message('<from_address>', subject, content, '')Update application identifier in app.yaml file
application: application_identifierUpload your application to Google App Engine
appcfg.py update google-sendgrid-python/
That's it, you can now checkout your application at:
http://application_identifier.appspot.com/
For more details about SendGrid libray please read http://sendgrid.com/docs/Code_Examples/python.html