如何在电子邮件内容中使用<br>标签? [重复]

This question already has an answer here:

    $to      = "example@gmail.com" ;

$subject = "Instant estimate message";


$message ="<b>Name: </b>".$name."
"."<b>Email: </b>".$email."
"."<b>Mobile: </b>".$mobile."
"."<b>Message: </b>".$message1;

$from = $email;
$headers = "MIME-Version: 1.0
";
$headers .= "Content-Type: text/html; charset=ISO-8859-1
";
$headers .= "From:".$from;

mail($to,$subject,$message,$headers);

i cant get the details in newline, even i have added

$message ="<b>Name: </b>".$name."</br>"."<b>Email: </b>".$email."</br>"."<b>Mobile: </b>".$mobile."</br>"."<b>Message: </b>".$message1;

So tell me how to fix this.

</div>

use <br/> tag instead of " ". I think it may help you.

Use <br/> tag,

$message =  "<b>Name: </b> $name <br/>".
            "<b>Email: </b> $email <br/>".
            "<b>Mobile: </b> $mobile <br/>".
            "<b>Message: </b> $message1";

The problem is your <br /> tag. Be careful where to put the slash. Not before br but after it. Rikesh told you the correct way!