how to make a simple mail system in laravel without view or notification

Solutions on MaxInterview for how to make a simple mail system in laravel without view or notification by the best coders in the world

showing results for - "how to make a simple mail system in laravel without view or notification"
Arthur
27 Jul 2019
1$name 	   = "User Name";
2$fromEmail = "akash@devsenv.com";
3$toEmail   = "manirujjamanakash@gmail.com";
4$subject   = "Simple Mail in Laravel";
5$mailBody  = "<h3><b>From:</b> $fromEmail </h3><div>Details...</div>";
6        
7\Mail::html( $mailBody, function( $message ) {
8   $message->subject( $subject )
9           ->to( $toEmail );
10});