Learn how to send your first email using the Resend PHP SDK.
composer require resend/resend-php
html
<?php require __DIR__ . '/vendor/autoload.php'; $resend = Resend::client('re_xxxxxxxxx'); $resend->emails->send([ 'from' => 'Acme <onboarding@resend.dev>', 'to' => ['delivered@resend.dev'], 'subject' => 'hello world', 'html' => '<strong>it works!</strong>', ]);
Was this page helpful?