PHP code example of resend / resend-php
1. Go to this page and download the library: Download resend/resend-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
resend / resend-php example snippets
$resend = Resend::client('re_123456789');
$resend->emails->send([
'from' => '[email protected]',
'to' => '[email protected]',
'subject' => 'hello world',
'text' => 'it works!',
]);
bash
composer