Skip to main content

PHP SDK

Official PHP client for the Mailofly REST API. Package: mailofly/mailofly · Requires: PHP 8.1+ · Quickstart: PHP

Install


Initialize

Create an API key under API keys first.

Send email

With a saved template

$client->compose->send is deprecated and forwards to /v1/emails.

Batch send (up to 100 emails)


Resources

Examples


Discovery (no API key)


Error handling