Skip to content
MailerOwl
Menu

Send email from PHP and Laravel in minutes

A plain HTTP call is all it takes. No SDK required: send transactional email from PHP and Laravel with the MailerOwl API.

No SDK to install

Use the HTTP client you already have in PHP and Laravel. The API is a single JSON endpoint.

Test mode keys

Develop against mo_test_ keys: the full pipeline, no real email.

Events and webhooks

Track delivery, bounces and complaints from your PHP and Laravel app with signed webhooks.

php
$ch = curl_init("https://api.mailerowl.com/v1/emails");
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("MAILEROWL_KEY"), "Content-Type: application/json"],
  CURLOPT_POSTFIELDS => json_encode(["from" => "Acme <hello@acme.com>", "to" => ["jane@example.com"], "subject" => "Welcome", "html" => "<p>Hi!</p>"])]);
echo curl_exec($ch);

Questions

Is there an official PHP and Laravel SDK?

Not yet. The API is intentionally simple: one POST with a JSON body.

Can I use SMTP from PHP and Laravel instead?

Yes. Use smtp.mailerowl.com on port 587 with your API key as the password.