Python + Postmark

See why hundreds of projects choose Postmark to send their transactional email

Community Libraries

5 Minute Set Up

1

Install the Postmark Python library with pip from the command line:

pip install postmarker
2

Create an instance of PostmarkClient and send your first email.

from postmarker.core import PostmarkClient
postmark = PostmarkClient(server_token='POSTMARK-SERVER-API-TOKEN-HERE')
postmark.emails.send(
  From='sender@example.com',
  To='recipient@example.com',
  Subject='Postmark test',
  HtmlBody='HTML body goes here'
)

Want to test our APIs and activity logging? Send emails to test@blackhole.postmarkapp.com

3

Once you’ve sent your first email, check out the PHP library docs →

Here’s what our customers are saying

We’re really happy we decided to use Postmark for ITV’s British Soap Awards. We only count votes from verified email addresses and Postmark’s excellent delivery has lead to our highest verification percentage ever. We'll definitely use Postmark again!

Owen Matthews

Owen Matthews

Creative Director at Ten4 Design

Made the switch to @postmarkapp today. The customer service and delivery rates are awesome, but the thing I love is EVERYTHING IS YELLOW!

Samuel Goudie

Samuel Goudie

via Twitter

Trying out @postmarkapp for my next react app blog and wow they have much better dev. experience than @SendGrid. Very clear & step-by-step.

Raja Rao DV‏

Raja Rao DV‏

via Twitter

Password reset emails delivered by @postmarkapp arrive in gmail in 1 second (vs 64 seconds for SendGrid)

Josh Crews

Josh Crews

via Twitter

From side projects to Fortune 500...

We’ve got you covered. We process transactional email for companies of all sizes:

Everything you need for first class email delivery

A comprehensive suite of tools to help you integrate email with your Python application.

  • Placeholder

    Easy-to-use, responsive email templates for sending welcome emails, password resets, and more.

  • Envelope stamped "DKIM"

    SPF, DKIM, and DMARC support included, with clear guides to help you get set up.

  • Placeholder

    45 days worth of full content history to help you troubleshoot.

  • Placeholder

    Keep track of bounced emails through the web dashboard, or use web hooks to notify your app of any issues.

  • Placeholder

    Increased visibility with detailed open and delivery tracking for every email.

  • Placeholder

    We share our delivery statistics to the major inbox providers right on our status page.

Lightning fast delivery

Your customers expect emails to arrive immediately—not eventually. We constantly
monitor our delivery speeds and share the data publicly.

  • Gmail

  • Apple

  • Hotmail

  • AOL

  • Yahoo

Time to Inbox data updated every 5 minutes

Ready to test drive Postmark?

Join thousands of developers that already trust their email delivery to Postmark.

Test Drive Postmark Free No Credit Card Required
Any questions? Call Marek at 1-855-286-7373