I am trying to send email using laravel 5.4. It completely runs if I do not use any variable. But when I set veritable $msg it show me error. How can I fix that? Thanks in advance.
public function index()
{
$msg= "This is an email";
Mail::send(['text'=>$msg],['name','mithun'],function($message){
$message -> to('m.r.mithun.94@gmail.com','to asdf')->subject('test');
$message -> from('mdmithun250@gmail.com','mithun');
});
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2KI9c8b
via IFTTT
Aucun commentaire:
Enregistrer un commentaire