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

PHP
0

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

$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 );
});
Posted by: Guest on July-23-2021

Code answers related to "How to make a simple mail system in Laravel without view or notification"

Browse Popular Code Answers by Language