PHP code example of resent / laravel

1. Go to this page and download the library: Download resent/laravel 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/ */

    

resent / laravel example snippets


'mailers' => [
    'resent' => [
        'transport' => 'resent',
    ],
],

use Illuminate\Support\Facades\Mail;

Mail::html('<strong>It works!</strong>', function ($message) {
    $message->to('[email protected]')
        ->from('Acme <[email protected]>')
        ->subject('Hello from Resent');
});

use Resent\Client;

app(Client::class)->emails->send([
    'from' => 'Acme <[email protected]>',
    'to' => '[email protected]',
    'subject' => 'Hello',
    'html' => '<strong>It works!</strong>',
]);
bash
php artisan vendor:publish --tag=resent-config