django-sendgrid
Project description
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 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"
Create a SendGridEmailMessage and send it:
>>> from sendgrid.message import SendGridEmailMessage >>> email = SendGridEmailMessage('Subject', 'Body', 'ryan@ryanbalfanz.net', ['ryan@ryanbalfanz.net']) >>> email.send()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-sendgrid-0.1.0.tar.gz
(4.6 kB
view details)
File details
Details for the file django-sendgrid-0.1.0.tar.gz
.
File metadata
- Download URL: django-sendgrid-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4680eff02600d5ced3aaa63c0b735da9ca79eaf2e53a73a3118e6b345ef4b33 |
|
MD5 | 529a644bfe0ba97af08c52d794ced00c |
|
BLAKE2b-256 | 763540a0f39c2dfffda44e63ee1a30d65064e3a4362f788a7c97a7d356da275b |