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": "onboarding@resend.dev",
"to": ["delivered@resend.dev"],
"subject": "hi",
"html": "<strong>hello, world!</strong>",
"reply_to": "to@gmail.com",
"bcc": "bcc@resend.dev",
"cc": ["cc@resend.dev"],
"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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for resend-0.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb80a0342bf87d29012c3917fd52371a72d3c636b7acfe79c841307e62b9e5f |
|
MD5 | 4476b46fd57ab84fc8f04a8a5967d376 |
|
BLAKE2b-256 | 1b00e5ba94af88a76a48351e900a79e0d3370bcff9a46277082ed6445c1ca5c7 |