from, fromname, to, subject, message
function SendPost($url,$array){
$postString = '';
foreach ($array as $key=>$value)
         $postString .= $key.'='.$value.'&';

$opts    = array('http'=>array('method'=>'POST','header'=>'Content-type: application/x-www-form-urlencoded','content'=>$postString));
$context = stream_context_create($opts);
$result  = file_get_contents($url, false, $context);
return $result;
}