To get the most out of this guide, you’ll need to:

1. Install

Get the Resend Python SDK.

pip install resend

2. Send email using HTML

The easiest way to send an email is by using the html parameter.
import os
import resend

resend.api_key = os.environ["RESEND_API_KEY"]

params: resend.Emails.SendParams = {
    "from": "Acme <>",
    "to": [""],
    "subject": "hello world",
    "html": "<strong>it works!</strong>",

email = resend.Emails.send(params)

3. Try it yourself

Python Example

See the full source code.

Was this page helpful?