Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
composer require mailofly/mailofly
<?php require 'vendor/autoload.php'; use Mailofly\Client; $client = new Client(getenv('MAILOFLY_API_KEY')); $result = $client->emails->send([ 'from' => 'Acme <onboarding@example.com>', 'to' => ['you@example.com'], 'subject' => 'Hello from Mailofly', 'html' => '<p>It works!</p>', ]); print_r($result['id']);
$client->mailLogs->list(['page' => 1, 'page_size' => 10]);