PHP code example of ebethus / laravel-elastic-email-driver

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

    

ebethus / laravel-elastic-email-driver example snippets


'elastic_email' => [
    'key' => env('ELASTIC_KEY'),
    'account' => env('ELASTIC_ACCOUNT'),
],

'mailers' => [
    // ... other mailers
    
    'elastic_email' => [
        'transport' => 'elastic_email',
    ],
],

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

Mail::to('[email protected]')->send(new WelcomeEmail());