PHP code example of sohaibilyas / laravel-zeptomail

1. Go to this page and download the library: Download sohaibilyas/laravel-zeptomail 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-zeptomail example snippets


'mailers' => [
    'zeptomail' => [
        'transport' => 'zeptomail',
        'token' => env('ZEPTOMAIL_TOKEN'),
        'host' => env('ZEPTOMAIL_HOST', 'api.zeptomail.com'),
        'version' => env('ZEPTOMAIL_API_VERSION', 'v1.1'),
        'timeout' => env('ZEPTOMAIL_TIMEOUT', 30),
    ],
],

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

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