Am having problem bolding my text or applying other styles to my mail content. eg
Code: Select all
$message= "Name: <b>$name</b>";
Name: <b>James</b> instead of
Name: James
What do i do?
Moderator: General Moderators
Code: Select all
$message= "Name: <b>$name</b>";
Code: Select all
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";Then you will have to use HTML bold tag <b> </b> to make text bold in your message.amargharat wrote:use following code in ur headers,
Code: Select all
$headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";