# PHP Mail Question

**URL:** <https://forum.kirupa.com/t/php-mail-question/42705>\
**Category:** programming\
**Created:** [February 12, 2004, 1:46am UTC](https://forum.kirupa.com/t/php-mail-question/42705 "2004-02-12T01:46:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![b\_rich](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@b\_rich](https://forum.kirupa.com/u/b_rich)\
**Post date:** [February 12, 2004, 1:46am UTC](https://forum.kirupa.com/t/php-mail-question/42705/1 "2004-02-12T01:46:21Z")

</div>

HI,

Using the code below, how do i make the words “Person(s) Name:” and “Contacts Email:” bold in a email since i cannot use html?

* * *

\<?php  
print "Thank You, \<b\>$\_POST[name]\</b\>, Your email message has been sent!\<br\>\<br\>

";  
print "Your message was:\<br\>\<br\>

";  
print “$\_POST[message] \<br\>\<br\>”;  
// NIBO mail string  
$msg = "Person(s) Name: $\_POST[name]  
";  
$msg .= "Contact’s Email Address: $\_POST[email]  
";  
$msg .= "Question/Message:  
$\_POST[message]  
“;  
// NIBO mail setup  
$recipient = "brich@nibodesigns.com”;  
$subject = “Someone has a question about your home!”;  
$mailheaders = "From: [RyderCupHomes2004.com](http://RyderCupHomes2004.com) \<[contact@rydercuphomes2004.com](mailto:contact@rydercuphomes2004.com)\>  
";  
$mailheaders .= “Reply-To: $\_POST[email]”;  
// Send the \*\*\*\* mail  
mail($recipient, $subject, $msg, $mailheaders);  
?\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 2:57am UTC](https://forum.kirupa.com/t/php-mail-question/42705/2 "2004-02-12T02:57:34Z")

</div>

it should be

$\_POST[‘message’]

$\_POST[‘name’]

$\_POST[‘email’]

etc…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 3:35am UTC](https://forum.kirupa.com/t/php-mail-question/42705/3 "2004-02-12T03:35:12Z")

</div>

ummm… thanks but thats not what i asked.

ok the results of that code in the mail look like:

Person(s) Name: [name]

Now what i want is the title (Person(s) Name): to be bold!!! I dont want the actual message to be bold just the label of the name(Person(s) Name) !

please advise.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 4:55am UTC](https://forum.kirupa.com/t/php-mail-question/42705/4 "2004-02-12T04:55:27Z")

</div>

use the \<b\>\</b\> tags

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 2:37pm UTC](https://forum.kirupa.com/t/php-mail-question/42705/5 "2004-02-12T14:37:22Z")

</div>

tried that already… it just puts \<b\> tags in the mail as is… any other suggestions???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 4:27pm UTC](https://forum.kirupa.com/t/php-mail-question/42705/6 "2004-02-12T16:27:00Z")

</div>

It will only be bold if the person recieving the e-mail has rich text email format turned on. Chances are they don’t. Many people do not allow rich-text e-mails and the formatting that you apply won’t come thru with the desired effect. The best way to do it is to not try to format e-mails with HTML.

No way to do it without using HTML.
