django-sendgrid 1.0.1

django-sendgrid

django-sendgrid is the easiest way to send e-mail with SendGrid. It uses the SendGrid SMTP API, as recommended.

Although it's rather simple to use, a example project is included to demonstrate usage.

Installation

To install with PyPi:

pip install django-sendgrid

Usage

Add sendgrid to your INSTALLED_APPS:

INSTALLED_APPS = (
        # Existing apps
        "sendgrid",
)

Add the following to your settings:

SENDGRID_EMAIL_HOST = "smtp.sendgrid.net"
SENDGRID_EMAIL_PORT = 587
SENDGRID_EMAIL_USERNAME = "your_sendgrid_username"
SENDGRID_EMAIL_PASSWORD = "your_sendgrid_password"

The API is similar to that of Django's; create a SendGridEmailMessage and send it:

>>> from sendgrid.message import SendGridEmailMessage
>>> email = SendGridEmailMessage('Subject', 'Body', 'ryan@ryanbalfanz.net', ['ryan@ryanbalfanz.net'])
>>> email.send()

Author

Ryan Balfanz

Pip

django-sendgrid==1.0.1
File Type Python Version Uploaded On Downloads
django-sendgrid-1.0.1.tar.gz Source Sept. 17, 2012 5,453
Version Release Date
1.0.1 Sept. 17, 2012
1.0.0 Aug. 16, 2012
0.5.2 June 23, 2012
0.5.1 June 23, 2012
0.5.0 June 23, 2012
0.4.4 June 22, 2012
0.4.3 March 27, 2012
0.4.2 March 25, 2012
0.4.1 Feb. 23, 2012
0.4.0 Feb. 17, 2012
0.3.0 Jan. 29, 2012
0.2.1 Jan. 25, 2012
0.2.0 Jan. 25, 2012
0.1.1 Jan. 14, 2012
0.1.0 Jan. 14, 2012
Date Package Version Action
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.5.2 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.4.4 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.5.0 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.4.2 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.4.3 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.4.0 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.4.1 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.2.0 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.2.1 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.1.0 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.5.1 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.3.0 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 1.0.1 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 1.0.0 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid 0.1.1 Release Created
Nov. 4, 2014, 1:46 p.m. django-sendgrid Package Created