Quickstarts
Send with PHP
Use the official PHP SDK.
1. Install
composer require resend/resend-php2. Point the SDK at Postwave
RESEND_BASE_URL=https://post-waves.com3. Send an email
<?php
require __DIR__ . '/vendor/autoload.php';
$client = Resend::client(getenv('API_KEY'));
$email = $client->emails->send([
'from' => 'Acme <onboarding@yourdomain.com>',
'to' => ['delivered@postwave.test'],
'subject' => 'Hello world',
'html' => '<strong>It works!</strong>',
]);
echo $email->id;4. Run it
API_KEY=pw_xxxxxxxxx php send.phpYou'll get back { "id": "…" }. Open Emails in the dashboard to see it arrive and its delivery status update.
Tip: delivered@postwave.test is a test address: it simulates a delivery without emailing anyone. Swap in a real address when you're ready.
Was this page helpful?Send feedback