PHP code example of sohaibilyas / laravel-cloudflare-email

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

    

sohaibilyas / laravel-cloudflare-email example snippets


'mailers' => [
    'cloudflare-email' => [
        'transport' => 'cloudflare-email',
        'account_id' => env('CLOUDFLARE_ACCOUNT_ID'),
        'token' => env('CLOUDFLARE_EMAIL_TOKEN'),
        'timeout' => env('CLOUDFLARE_EMAIL_TIMEOUT', 30),
    ],
],

use App\Mail\WelcomeMail;
use Illuminate\Support\Facades\Mail;

Mail::to('[email protected]')->send(new WelcomeMail);
bash
php artisan vendor:publish --tag=cloudflare-email-config