resend 2.4.0

Creator: railscoderz

Last updated:

0 purchases

resend 2.4.0 Image
resend 2.4.0 Images

Languages

Categories

Add to Cart

Description:

resend 2.4.0

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": "[email protected]",
"to": ["[email protected]"],
"subject": "hi",
"html": "<strong>hello, world!</strong>",
"reply_to": "[email protected]",
"bcc": "[email protected]",
"cc": ["[email protected]"],
"tags": [
{"name": "tag1", "value": "tagvalue1"},
{"name": "tag2", "value": "tagvalue2"},
],
}

email: resend.Email = resend.Emails.send(params)
print(email)

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.