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 = "re_yourkey"
Example
You can get an overview about all parameters in the Send Email API reference.
import os
import resend
resend.api_key = "re_yourkey"
params: resend.Emails.SendParams = {
"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"},
],
}
email: resend.Emails.SendResponse = resend.Emails.send(params)
print(email)
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-2.25.0.tar.gz
(31.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file resend-2.25.0.tar.gz.
File metadata
- Download URL: resend-2.25.0.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b51c01638eade1d9ac28bfe5ad9b3183100bbfbcedd9303e22379cf79b6b7b
|
|
| MD5 |
0a783c0be1293f84c6b64e2d95485e2b
|
|
| BLAKE2b-256 |
9054deb659d61033c31bbec52ad41d454b9bc092fbbc0e3eab391706b1109a1e
|
File details
Details for the file resend-2.25.0-py2.py3-none-any.whl.
File metadata
- Download URL: resend-2.25.0-py2.py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c8995589a81e3a8585b24a1141676ffa6c7924eef4361d2093289d2cfe0e442
|
|
| MD5 |
799b1565d1188bf242241891b8b7b8df
|
|
| BLAKE2b-256 |
eb7a7e1268472b516a92d86afe094b6a0cac37382f1c7ff0599c75b77041a43b
|