PHP code example of toitzi / laravel-cloudflare-mail
1. Go to this page and download the library: Download toitzi/laravel-cloudflare-mail 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/ */
toitzi / laravel-cloudflare-mail example snippets
'default' => env('MAIL_MAILER', 'cloudflare'),
'mailers' => [
'cloudflare' => [
'transport' => 'cloudflare',
'account_id' => env('CLOUDFLARE_EMAIL_ACCOUNT_ID'),
'api_token' => env('CLOUDFLARE_EMAIL_API_TOKEN'),
'base_url' => env('CLOUDFLARE_EMAIL_BASE_URL', 'https://api.cloudflare.com/client/v4'),
'timeout' => 30,
'connect_timeout' => 10,
],
],