# Php mail get junk in hotmail

**URL:** <https://forum.kirupa.com/t/php-mail-get-junk-in-hotmail/314392>\
**Category:** Uncategorized\
**Created:** [September 27, 2010, 3:36pm UTC](https://forum.kirupa.com/t/php-mail-get-junk-in-hotmail/314392 "2010-09-27T15:36:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [September 27, 2010, 3:36pm UTC](https://forum.kirupa.com/t/php-mail-get-junk-in-hotmail/314392/1 "2010-09-27T15:36:39Z")

</div>

Hi there,

I find out that my email get junk in hotmail. it works everywhere else except hotmail.  
I have read that it might be my headers but got no clue what to insert or change. I am still looking around but with no success.

Does anybody know anything about hotmail and php email?

Thanks a lot for any help.

Regards,

Jerome

```php

<?php
$headers = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "
";

// Additional headers
$headers .= 'From: Whaterver subject <youremail@gmail.com>' . "
";
    
$userSubject = "You have requested your Ownership Profile Username";

$htmltext = "<html><body><table><tr><td><b>Hello World</b></td></tr></table></body></html>";

$success = mail($Recipiant,$userSubject,$htmltext,$headers);
?>

```
