To get started, install o365-sendmail via the Composer package manager:
1composer require samluvanda/o365-sendmail
Next, you should execute the o365-sendmail:env Artisan command. This command will set the o365-sendmail environment variables:
1php artisan o365-sendmail:env