php mail function

Status
Not open for further replies.

rashid100_200081

New Member
Messages
2
Reaction score
0
Points
0
hi,

I am newly create account here and I tried to run this script which using mail function. But its also give me the error that Mail Failed. Can you please help me.

My coding is as follow:
<?php

$to=\"rashid100_2000@yahoo.com\";
$message=\"test mail\";
$subject=\"helo\";
$from = \"jobs@amafhhemployment.co.uk\";
$header = \"From: $from\";

$status=mail($to,$subject, $message, $header);
if ($status)
echo \"mail Deleivered\";
else
echo \"Mail Failed\";
 
Status
Not open for further replies.
Top