1. Go to this page and download the library: Download alezhu/laravel-notisend 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/ */
use Illuminate\Mail\Message;
use Illuminate\Support\Facades\Mail;
use Tests\TestCase;
class ExampleTestManual extends TestCase
{
/**
* A basic test example.
*/
public function test_notisend(): void
{
Mail::mailer('notisend')
->raw('Test mail', function (Message $message) {
$message->to('[email protected]');
$message->subject('Test mail');
});
}
}