PHP code example of niclas-van-eyk / laravel-mail-in-the-middle
1. Go to this page and download the library: Download niclas-van-eyk/laravel-mail-in-the-middle 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/ */
niclas-van-eyk / laravel-mail-in-the-middle example snippets
// ...
'mailers' => [
// the standard mailers, the one before this is usually 'array'...
// This entry needs to be added
'mail-in-the-middle' => [
'transport' => 'mail-in-the-middle',
],
],
// rest of the configuration...
class Kernel extends ConsoleKernel
{
// ...
protected function schedule(Schedule $schedule)
{
$schedule
->command("mitm:clear-mails-older-than 'last week'")
->daily();
}
// ...