PHP code example of adeboyed / laravel-ews-driver

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

    

adeboyed / laravel-ews-driver example snippets


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

$app->configure('mail');
$app->configure('services');
$app->register(Adeboyed\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
        ],
    ],