How to make a simple mail system in Laravel without view or notification

67

$name 	   = "User Name";
$fromEmail = "[email protected]";
$toEmail   = "[email protected]";
$subject   = "Simple Mail in Laravel";
$mailBody  = "<h3><b>From:</b> $fromEmail </h3><div>Details...</div>";
        
\Mail::html( $mailBody, function( $message ) {
   $message->subject( $subject )
           ->to( $toEmail );
});

Comments

Submit
0 Comments