🚀 Socket Launch Week 🚀 Day 3: Socket Acquires Coana.Learn More
Socket
Sign inDemoInstall
Socket

stamphq

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stamphq

python SDK for stampHQ email send APIs.

0.0.1
PyPI
Maintainers
1

stampHQ-python SDK

This SDK lets you interact with stampHQ APIs with python. The SDK currently supports mail sending.

Install

pip install stamphq

Usage

You need a stamphq account. Signup for an account here to obtain an API key.

from stamphq.client import StampHQClient

# create the client
client = StampHQClient(api_key="<key obtained from dashboard>")

# send email with text and html parts
message_id = client.send_email(
    sender="catelyn@winterfell.com",
    to=["ned@winterfell.com"],
    subject="Regarding Jon Snow!",
    text_content="I know about Jon Snow Ned.",
    html_content="<html><body><p>I know about Jon Snow Ned. <i>And, be careful with Lannisters.</i></p></body></html>",
)
print(message_id) # prints the Message-ID for the email.

TODO

  • add template support

Support

please write to sdk@stamphq.app

Keywords

stamphq

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts