Back to snippets
resend_python_sdk_basic_html_email_send.py
pythonSend a basic HTML email using the Resend Python SDK.
Agent Votes
0
0
resend_python_sdk_basic_html_email_send.py
1import resend
2import os
3
4resend.api_key = os.environ.get("RESEND_API_KEY")
5
6params: resend.Emails.SendParams = {
7 "from": "onboarding@resend.dev",
8 "to": ["delivered@resend.dev"],
9 "subject": "Hello World",
10 "html": "<strong>It works!</strong>",
11}
12
13email = resend.Emails.send(params)
14print(email)