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.1.macosx-11.6-arm64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd9d8ec55fda954f73fac3aba604995addcf20e874f6d4e9f4a02d548ad9fb2 |
|
MD5 | e0c911875c894c30670750a7d8d11c9f |
|
BLAKE2b-256 | 32132310a5db1dba4900be609652a3762b0fd10f5e62a98a3d6650f5710c85e0 |
Close
Hashes for sendgrify-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e67242ad8b0fee77bfb63e20c5f4dfd0f77d2eadf584a9f8d09d899c96490023 |
|
MD5 | 4b5c7a1b4c3eb7bd6ebf7adfcf4e9005 |
|
BLAKE2b-256 | 6c3da2d50f125258c3260985b74fa724527541e1da36584ce9035e68db9c5029 |