Resend Python SDK
Project description
Resend Python SDK
Installation
To install Resend Python SDK, simply execute the following command in a terminal:
pip install resend
Setup
First, you need to get an API key, which is available in the Resend Dashboard.
import resend
import os
resend.api_key = os.environ["RESEND_API_KEY"]
Example
import os
import resend
resend.api_key = os.environ["RESEND_API_KEY"]
params = {
"from": "r@email.io",
"to": ["to@gmail.com"],
"subject": "hi",
"html": "<strong>hello, world!</strong>",
"reply_to": "to@gmail.com",
"bcc": "to@gmail.com",
"cc": ["to@gmail.com"],
"tags": [
{"name": "tag1", "value": "tagvalue1"},
{"name": "tag2", "value": "tagvalue2"},
],
}
r = resend.Emails.send(params)
print(r)
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
resend-0.4.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for resend-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cbeefd2840f159cfc184e42a33bc4949902c4910324910099f323a370483ceb |
|
MD5 | c1d65b35351f1cb6c2af3831e1d6f188 |
|
BLAKE2b-256 | ee1adef526137ada56c2b04f2e48d122588efd1f6edaa275bde5b1bb2bf20040 |