mitteramittera

PHP

Send with PHP.

POST the JSON to the emails endpoint. curl or any HTTP client works. We will ship a first-party package when it is ready — not before.

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

Get started
1POST https://api.mittera.eu/api/emails2Authorization: Bearer mt_xxxxxxxxx3Content-Type: application/json45{6  "from": "hello@acme.com",7  "to": "you@acme.com",8  "subject": "Hello from mittera",9  "html": "<strong>it arrived.</strong>"10}
$ch = curl_init("https://mittera.eu/api/emails");
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer mt_xxxxxxxxx",
    "Content-Type: application/json",
  ],
  CURLOPT_POSTFIELDS => json_encode([
    "from" => "hello@acme.com",
    "to" => "you@acme.com",
    "subject" => "Hello from mittera",
    "html" => "<strong>it arrived.</strong>",
  ]),
  CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);

Ready when you are.

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