laravel how to test email testing 1

laravel how to test email testing

\Mail::raw('hello world', function($message) {
   $message->subject('Testing email')->to('test@example.org');
});

Here is what the above code is Doing:
1. We’re using the Mail facade to send a raw message.
2. We’re passing a string to the raw method.
3. We’re passing a closure to the raw method.
4. We’re setting the subject of the message.
5. We’re setting the recipient of the message.

Similar Posts