SendGrid Logo ### Using SendGrid Email APIs
to Bring Your Eh? Game ##### aka, Integrate our Email deliverability
platform in under 5 minutes Ian Douglas, [ian.douglas@sendgrid.com](mailto:ian.douglas@sendgrid.com)

Email Delivery. Simplified.


Why use SendGrid's Infrastructure?

  • Building/Maintaining your own is "teh suck"
  • Focus on your business instead
  • Reliable delivery, Scalability, Real-time analytics
  • We have a free developer account,
    200 Emails/day: http://hack.sendgrid.com/

Who Uses SendGrid?

customer logos: Pinterest, Twilio, TechStars, Foursqure, Spotify, Uber, Path, airbnb and more!

Python-friendly Partners

Heroku Windows Azure
Softlayer BitPusher

Services/API's we offer

  • Send Email:
    • SMTP
    • SMTP API
    • Web API
  • Newsletter API
  • Account Configuration over API
  • Parse Webhook for incoming Email
  • Event Notification Webhook

Installation of our Python
SMTP/Web Mail API library

  • $ sudo easy_install sendgrid
    or
    $ git clone git@github.com:sendgrid/sendgrid-python
    $ cd sendgrid-python
    $ sudo python setup.py install

5 lines of code

  • import sendgrid
    
    # build an auth object
    sgauth = sendgrid.Sendgrid("username", "password",
        secure=True)
    
    # build a message object
    sgmsg = sendgrid.Message("from@address.com", "subject",
        "plaintext body", "html body")
    
    # add a recipient
    sgmsg.add_to("my@recipient.com")
    
    # send the message
    sgauth.smtp.send(sgmsg)

Live Demo

  • Live Photo Booth App
  • Stores images on disk
  • We want to Email photos to ourself
     
  • Works on Chrome v22+, Opera 12.0+, requires a webcam
  • demo
     
  • Heroku Demo

Great Analytics and Stats

SendGrid Statistics page
## Real-Time Event Notifcation * give us a web endpoint * POST data to you in batches of JSON * real-time reporting on the following events:
  • processed
  • delivered
  • dropped
  • deferred
  • bounced
  • message opened
  • link clicked
  • unsubscribe
  • marked as spam
  • * current latency to your endpoint is ~5 seconds

    Tim Horton's Challenge

    http://goo.gl/aWMcG @iandouglas736 #pyconca