Python

Official Python SDK — pip install resent

Install the Resent client:

$pip install resent
1import os
2from resent import Resent
3
4resent = Resent(os.environ["RESENT_API_KEY"])
5
6result = resent.emails.send(
7 from_="Acme <noreply@yourdomain.com>",
8 to="you@example.com",
9 subject="Hello World",
10 html="<strong>It works!</strong>",
11)
12
13print(result.submission_id)