lundi 24 février 2020

Sending html content as mail body laravel mail sending application

My controller is

public function basic_email() {
  $data = array('name'=>"Virat Gandhi",'roll'=>"123");
  Mail::send(['text'=>'mail'], $data, function($message) {
     $message->to('xyz@gmail.com', 'Basil Baby')->subject
     ('Laravel Basic Testing Mail');
     $message->from('abc@yahoo.com','Virat Gandhi');
  });
  echo "Basic Email Sent. Check your inbox.";

}

My blade is

Hi, 
  your roll number is 
  please click on the link to <a href="#">verify your account</a>

Mail is being received. but the mail body is displaying html content as such. How to make verify you account a html link in mail body



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire