# Why doesn't PHP mailing work for me? :(

**URL:** <https://forum.kirupa.com/t/why-doesnt-php-mailing-work-for-me/200981>\
**Category:** Uncategorized\
**Created:** [September 17, 2006, 11:01am UTC](https://forum.kirupa.com/t/why-doesnt-php-mailing-work-for-me/200981 "2006-09-17T11:01:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagoman](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jagoman](https://forum.kirupa.com/u/jagoman)\
**Post date:** [September 17, 2006, 11:01am UTC](https://forum.kirupa.com/t/why-doesnt-php-mailing-work-for-me/200981/1 "2006-09-17T11:01:37Z")

</div>

Serious help for a simple problem. Been at this for a long time, it simply doesn’t work!

I’ve simplified the problem completely, this is the php file (taken from [php.net](http://php.net) - only changed the email it is being sent to):

=============================================  
\<?php  
$to = ‘tariqayubi@hotmail.com’;  
$subject = ‘the subject’;  
$message = ‘hello’;  
$headers = ‘From: [webmaster@example.com](mailto:webmaster@example.com)’ . "  
" .  
‘Reply-To: [webmaster@example.com](mailto:webmaster@example.com)’ . "  
" .  
‘X-Mailer: PHP/’ . phpversion();

# mail($to, $subject, $message, $headers); ?\>

Firstly I wanted to send a mail from a flash file, but that didn’t work, so i just went down to this very low level script.

I’m using StreamlineNet as my host which does support PHP (i’ve used a few other hosts too).

I would appreciate ANY help

THANKS.
