Skip to main content

Python SDK for the Mailstein API

Project description

mailstein

Official Python SDK for mailstein — send transactional and broadcast email from infrastructure you control.

Install

pip install mailstein

Usage

from mailstein import Mailstein

client = Mailstein("ms_your_api_key")

email, err = client.emails.send({
    "from": "hello@yourdomain.com",
    "to": "customer@example.com",
    "subject": "Welcome aboard",
    "html": "<h1>You're in.</h1>",
})
if err:
    raise RuntimeError(err)

Methods return a (result, error) tuple. The client exposes emails, domains, contacts, contact_books, campaigns, and webhooks.

Documentation

Full reference: https://mailstein.com/docs

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailstein-0.2.10.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mailstein-0.2.10-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file mailstein-0.2.10.tar.gz.

File metadata

  • Download URL: mailstein-0.2.10.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mailstein-0.2.10.tar.gz
Algorithm Hash digest
SHA256 bbf8e93b4e0656d25cf29b11f3d46f7193a7e01196d31afd160f0e57002465e0
MD5 2d6bb598eb6a89af2ecfa08f0ae27b00
BLAKE2b-256 9eb7db18ab142ca0d348c0470586d3143cd528e31141fb5943afd698c6055300

See more details on using hashes here.

File details

Details for the file mailstein-0.2.10-py3-none-any.whl.

File metadata

  • Download URL: mailstein-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mailstein-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e86ab9dd395908818b7472294cad4d422bc5742caf172836c80502701dbb18c2
MD5 6fc7f4eceadb742c2b9bb2a98e52aa38
BLAKE2b-256 b6df811bd3750f830ee61b11ce83807208b509e161b6134d36c23ca40f85c5d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page