Skip to content

Instantly share code, notes, and snippets.

@brandonmwest
Created August 18, 2013 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonmwest/6262961 to your computer and use it in GitHub Desktop.
Save brandonmwest/6262961 to your computer and use it in GitHub Desktop.
Example Jekyll page
---
layout: page
weight: 0
title: Python
navigation:
show: true
---
We'll start with a simple example using the built-in Python SMTP libraries to send a message.
After that example, you can find more complete instructions that use the SendGrid Python library.
{% anchor h2 %}
Using Python's SMTP Library
{% endanchor %}
This Python program will build a multi-part MIME email and send it through SendGrid.
Python has built in libraries to send and receive emails. This example uses:
* [smtplib](http://docs.python.org/library/smtplib.html)
* [email](http://docs.python.org/library/email.html#module-email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment