Skip to main content

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

  1. Grab your SendGrid API Key.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sendgrify-2.0.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

sendgrify-2.0.3-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page