-1

I want to send some information on mail body. When I try its works but Google shows trimmed content(...).

My code is like this:

$name = $e->name;
$code=$request->code;
 $mes2="loretmtext,";
        $mes3="loremtext";
        $mes4="Code:".$code;
        $mes5="e:".$name;
$mes6="text"


//and i send mail function
$msg= $mes2."<br />".$mes3."<br />".$mes4."<br />".$mes5."<br />".$mes6."<br />";

How can i solve?

xxx
  • 7
  • 1

1 Answers1

0

Need to add "Content-Type: text/html; in header mail request to use html tag <br /> in you massage look this: Send HTML in email via PHP