mitteramittera

Python

Send with Python.

Pass your API key and send. Note the key is “from”, quoted — it is a reserved word in Python, so it goes in the dictionary rather than as an argument.

There is no first-party package for this language yet. The REST API is the same from any stack.

Get started
  1. Create a free account and an API key in the dashboard.
  2. Verify the domain you want to send from.
  3. Paste the call below. It needs requests, which most projects already have.
1import requests23requests.post(4    "https://api.mittera.eu/api/emails",5    headers={"Authorization": "Bearer mt_xxxxxxxxx"},6    json={7        "from": "hello@acme.com",8        "to": "you@acme.com",9        "subject": "Hello from mittera",10        "html": "<strong>it arrived.</strong>",11    },12)

Ready when you are.

Create an account, verify a domain, send the first one.