SendGrid mail send API wrapper
Project description
SendGrid mail API wrapper
Installation
pip install aiohttp_sendgrid
Basic Usage
import asyncio
from aiohttp_sendgrid import Sendgrid
mailer = Sendgrid()
to = 'to@example.com'
sender = 'from@example.com'
subject = 'greetings'
content = '<h1>Hello</h1>'
send_mail = mailer.send(to, sender, subject, content)
loop = asyncio.get_event_loop()
loop.run_until_complete(send_mail)
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
aiohttp_sendgrid-0.0.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for aiohttp_sendgrid-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 232d4b7e844bb551afc69def20d00b2c2e33dc3cc210792ed61502b03aa15da6 |
|
MD5 | 9bf8d597d3a7ee7f46569fa6843abd2b |
|
BLAKE2b-256 | 63b69996030c6b460a7cebfd18a705b96c6eb0d8beaafaa0ee24ff373e80282d |