How to make a mail with laravel

PHOTO EMBED

Sun Apr 24 2022 03:22:34 GMT+0000 (UTC)

Saved by @Abdelrhman #php #laravel

// will add this code in web.php page 
Route::get("/mail",function(){
    Mail::raw("thank you", function($messsage){
        $messsage->to("name@gmail.com")->subject("contact with me");
    });
});

// will add this code at env file 
MAIL_MAILER=log

// to see the result you should go to www.myapp.com/mail then go to laravel.log file you will find the result there 
content_copyCOPY

Home