SendGrid for Humans
Project description
sendgrify
SendGrid for Humans.
Sendgrify is a Python package serving as a wrapper over the email delivery service SendGrid.
This is an attempt to simplify the use of sendgrid-python: the Official Twilio SendGrid Led, Community Driven Python API Library.
Sending emails, the easy way!
Installation
$ pip install sendgrify
Usage
- Grab your SendGrid API Key.
- Code!
>>> from sendgrid import SendGrid
>>> handler = SendGrid('YOUR_SENDGRID_API_KEY', 'from_addr@example.com', 'From Name')
>>> handler.send(to='hello@example.com', subject='Hi there', msg='This is just a test')
Advanced usage
Function send()
also admits some more parameters:
cc
: as a list of emails for carbon copy.bcc
: as a list of emails for blind carbon copy.attachments
: as a list of paths for file attachments.as_markdown
: as a boolean (if True msg will be rendered from Markdown).
Tests
$ pip install -r requirements-dev.txt
$ pytest
License
MIT
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
Built Distribution
Close
Hashes for sendgrify-2.0.2.macosx-11.6-arm64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f0af416ddede85c664e856b9f6fff255e2f6b21c797da6958e1d3f82b0140e |
|
MD5 | e34302a1442d12b4648be306bf18c36b |
|
BLAKE2b-256 | 08a9740fc55fa47324c6ab86997e35734fbf7160c63e1b1c8af3871db79e3f2e |
Close
Hashes for sendgrify-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 109c66941a851e119a06146fd04c45f7fe903f14ff6d901eeb4dcd43c8e11cde |
|
MD5 | 1ebb0468601d9b3800c05ca780a93f65 |
|
BLAKE2b-256 | 2bf9ef19aba69e059412117aa83a5c43e415e47d07b151e9c3bcb1ec0b728ff8 |