$to = "[email protected]" ;
$subject = "Instant estimate message";
$message ="<b>Name: </b>".$name."\r\n"."<b>Email: </b>".$email."\r\n"."<b>Mobile: </b>".$mobile."\r\n"."<b>Message: </b>".$message1;
$from = $email;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$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.
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!
use <br/>
tag instead of "\r\n"
. I think it may help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With