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.21.0.tar.gz
(30.8 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.21.0.tar.gz.
File metadata
- Download URL: resend-2.21.0.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
765288c2015c2c4dd0fb3c8596af4007709b790336eda2966593194377546d11
|
|
| MD5 |
7dabc9e2043aee32c487b2ebfe5a9ee4
|
|
| BLAKE2b-256 |
895eb38788ca9b69233b247ddcf3678a25e761ce0b69d04a743e2e355e43c176
|
File details
Details for the file resend-2.21.0-py2.py3-none-any.whl.
File metadata
- Download URL: resend-2.21.0-py2.py3-none-any.whl
- Upload date:
- Size: 51.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
906d1916298e7b6b9a0f2a8e81a123f12cda5fd07683ecbfa53b54e8ec58f5f4
|
|
| MD5 |
c814c2503f53a317fc9a6dd065161fe8
|
|
| BLAKE2b-256 |
bef90d93391ec2c1b3b984571d5c1de3078721c34619d96a6c658a4bf2cf2e24
|