php - Add bold text in mail sender text -


here code:

$email_body = "you have received new message. ".     " here details:\n\n name: $name \n email: $email_address \n message \n $message"; 

i want add bold text to: "name:", "email:", , "message"

i have tried using "< b > name: < /b>" (without space of course), doesn´t work. want text bold when receive mail.

// send html mail, content-type header must set

$headers = 'mime-version: 1.0' . "\r\n";
$headers .= 'content-type: text/html; charset=iso-8859-1' . "\r\n";

$email_body = "you have received new message. ".     " here details:\n\n <strong>name:</strong> $name \n <strong>email:</strong> $email_address \n message \n $message";  // mail mail($to, $subject, $message, $headers); 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -