Python

Official Python SDK — pip install resent

Install the Resent client:

pip install resent
import os
from resent import Resent
resent = Resent(os.environ["RESENT_API_KEY"])
result = resent.emails.send(
from_="Acme <noreply@yourdomain.com>",
to="you@example.com",
subject="Hello World",
html="<strong>It works!</strong>",
)
print(result.submission_id)