Send a Test Email in Laravel

bmckay959 Avatar

Want to send a quick email to make sure your configurations and mailer are setup correctly? You can do this easily with Tinker.

php artisan tinker
Mail::raw('Hello World', function($msg) {$msg->to('user@example.com')->subject('Hello World'); });

It’s that easy. No mailer templates needed.


Leave a Reply

Blog at WordPress.com.

%d bloggers like this: