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(
)
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.3.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for resend-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ca31bfa3c023e6c3181842e6cc7915cdf1717a2837d78d26045d8969e37257 |
|
MD5 | e5d8e1778466c1cfffba4cb2898c5c57 |
|
BLAKE2b-256 | 802b1257b6bdbeba6b617e8351d5dbe36e8fa2bbc3ad352e91d9dfb9f49e1903 |