# Html e-mail font/color problem

**URL:** <https://forum.kirupa.com/t/html-e-mail-font-color-problem/235305>\
**Category:** Uncategorized\
**Created:** [August 10, 2007, 3:52am UTC](https://forum.kirupa.com/t/html-e-mail-font-color-problem/235305 "2007-08-10T03:52:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ticl4](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@ticl4](https://forum.kirupa.com/u/ticl4)\
**Post date:** [August 10, 2007, 3:52am UTC](https://forum.kirupa.com/t/html-e-mail-font-color-problem/235305/1 "2007-08-10T03:52:46Z")

</div>

Hi,

I have a contact form on my website which forwards the messages to me via a php script using htmlMimeMail. All works great except the body of the message is turquoise in color and huge font (verdana 37) (both in thunderbird and outlook, in the latter the font size is ok). The headers (name and email) are fine.

This is the php script:

\<?  
//extract data from the post array. this data comes from flash  
$from=$\_POST[‘from\_text’];  
$email=$\_POST[‘email\_text’];  
$message=$\_POST[‘body\_text’];

//include the email class file  
include(‘htmlMimeMail.php’);

//create an instance of the email class/ object  
$mail = new htmlMimeMail();

//define a variable to store the html content of our email to be sent  
$html = “A message from website: \<br\>\<br\>  
\<b\>Name:\</b\>$from\<br\>  
\<b\>Email:\</b\>\<a href=‘mailto:$email’\>$email\</a\>\<br\>  
\<b\>Message:\</b\>\<br\>$message\<br\>\<br\>  
---------------\<br\>  
End of Message”;

//set the html content of our email  
$mail-\>setHtml($html);

//who the email comes from  
$mail-\>setFrom($from . ‘\<’ . $email . ‘\>’);

//the subject of the email  
$mail-\>setSubject(“A message from website”);

//send the email and store the result that gets returned in a variable called $mail\_success.  
$mail\_success = $mail-\>send(array("abc@efg.net, [hjk@lmn.com](mailto:hjk@lmn.com)"), ‘smtp’);

//check if mail\_success is true and notify flash  
if ($mail\_success == true) {  
echo ‘&successvar=1&’;  
} else {  
echo ‘&successvar=0&’;  
}  
?\>

So, where is the color of the $message and the font size set? How would I change it?

Thanks in advance!
