Search by

Mailset's official PHP SDK: send mail from your own domains, verify webhooks, and run every Mailset command.

v0.7.0 2026-12-01 12:56 UTC

This package is auto-updated.

Last update: 2026-12-01 13:16:00 UTC


README

Send mail from your own domains, verify Mailset's webhooks, and run every Mailset command from PHP 8.1 or later. It needs the curl, json and openssl extensions and no other package.

composer require mailset-app/php
$mailset = new Mailset\Client(); // reads MAILSET_KEY from the environment

$sent = $mailset->send([
    'from' => 'Acme <hello@example.com>',
    'to' => 'ana@example.org',
    'subject' => 'Your Acme code',
    'text' => 'Your code is 123456.',
]);

sendMany([...]) sends a list and answers one result per message. Every other command is a method of its group, such as $mailset->domains->add(['name' => 'example.com']), and Mailset\Webhooks::verify($body, $headers, $secret) checks a webhook with no client at all.

Questions and issues: mailset.app/support