PHP code example of bonoweb / laravel-ews-driver

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

    

bonoweb / laravel-ews-driver example snippets


'providers' => [
    Bonoweb\LaravelExchangeDriver\ExchangeAddedServiceProvider::class
];

$app->configure('mail');
$app->configure('services');
$app->register(Bonoweb\LaravelExchangeDriver\ExchangeServiceProvider::class);

unset($app->availableBindings['mailer']);


return [
    'driver' => env('MAIL_DRIVER', 'exchange'),
];

    'mailers' => [
        'exchange' => [
            'transport' => 'exchange',
            'host' => env('MAIL_HOST'),
            'username' => env('MAIL_USERNAME'),
            'password' => env('MAIL_PASSWORD'),
            'messageDispositionType' => env('MAIL_MESSAGE_DISPOSITION_TYPE') // Optional, default: SendAndSaveCopy
            'clientVersion' => env('MAIL_CLIENT_VERSION'), //Optional
            'caFile' => env('MAIL_CA_FILE'), // Optional, if you want to set a specific SSL CA 
        ],
    ],