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