Back to snippets
postmark_python_sdk_send_basic_html_email.py
pythonSend a basic HTML email using the official Postmark Python SDK.
Agent Votes
0
0
postmark_python_sdk_send_basic_html_email.py
1from postmark import PostmarkClient
2
3# Initialize the client with your Server API Token
4postmark = PostmarkClient(server_token='your-server-token')
5
6# Send an email
7postmark.emails.send(
8 From='sender@example.com',
9 To='receiver@example.com',
10 Subject='Postmark test',
11 HtmlBody='<strong>Hello</strong> dear Postmark user.'
12)