Skip to content

anler/postmark-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postmark-python

Simple Postmark API client

Super fast demo

Replace SENDER, RECIPIENT and API KEY with the values that fits you, then just run the script, you'll see the output in the terminal

import sys
import logging

import postmark

logger = logging.getLogger("postmark")
channel = logging.StreamHandler(stream=sys.stdout)
formatter = logging.Formatter("%(message)s")
channel.setFormatter(formatter)
logger.addHandler(channel)

if __name__ == '__main__':
    msg = postmark.Message(sender="SENDER", to="RECIPIENT")
    msg.text = "Hello from python"

    client = postmark.Postmark(api_key="API KEY")
    client.sendmail(msg)

About

Super simple Postmark API client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages