# PHP mail function with html and css

**URL:** <https://forum.kirupa.com/t/php-mail-function-with-html-and-css/193623>\
**Category:** programming\
**Created:** [July 14, 2006, 4:43pm UTC](https://forum.kirupa.com/t/php-mail-function-with-html-and-css/193623 "2006-07-14T16:43:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theHollow](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thehollow/32/106_2.png) [@theHollow](https://forum.kirupa.com/u/theHollow)\
**Post date:** [July 14, 2006, 4:43pm UTC](https://forum.kirupa.com/t/php-mail-function-with-html-and-css/193623/1 "2006-07-14T16:43:03Z")

</div>

I have a script I’m going to run on my site that sends me an email (to my hotmail account) which contains html tags and css. But when i get the email its wrapped in \<pre\> tags, so i see all the html and css as plain text.

The html is just a \<div\> with some \<p\> and \<a\> tags in it and the styles are in style tags. Is there a way to make it show up as ive written it?

Brendan
