PHP code example of shrd / laravel-microsoft-graph-mailer

1. Go to this page and download the library: Download shrd/laravel-microsoft-graph-mailer 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/ */

    

shrd / laravel-microsoft-graph-mailer example snippets

{php}
return [
    "mailers" => [
        "microsoft-graph" => [
            "transport" => "microsoft-graph",
            "credential_driver" => env('MAIL_MICROSOFT_GRAPH_CREDENTIAL_DRIVER'), // Defaults to the default azure credential of the app.
            "save_to_sent_items" => env('MAIL_MICROSOFT_GRAPH_SAVE_TO_SENT_ITEMS', false) // Save the emails in the sent items of the mailbox?
        ]
    ]
]