Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29934

Sending html content as mail body laravel mail sending application

$
0
0

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, {{ $name }}
  your roll number is {{$roll}}
  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


Viewing all articles
Browse latest Browse all 29934

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>