How to make a simple mail system  without view or notification in Laravel 9 code answer ,2024

In this article, we will learn about How to make a simple mail system in Laravel 9 without view or notification

1). How to make a simple mail system  without view or notification in Laravel 9

Source: devsenv.com

$name 	   = "User Name";
$fromEmail = "akash@devsenv.com";
$toEmail   = "manirujjamanakash@gmail.com";
$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 );
});

Discover more from STRUGGLER KING.COM

Subscribe now to keep reading and get access to the full archive.

Continue Reading