|
RE: Problem sending mail()
here are my codes:
<?php
$to = "rivaisalim@hotmail.com";
$subject = "Mail test";
$header = "From: z1gma@hotmail.com";
$body = "Hello there can you receive my mail?";
$success = mail ($to, $subject, $body, $header);
if ($success)
{
echo ("<br><b>Email Sent to $to!</b><br>\n");
}
else
{
echo ("<br><b>Email Can't be sent to $to!</b><br>\n");
}
?>
I have tested my code at free web that support php and it works but it's not working at my local NT server with IIS
It give the following error for me:
Warning: Unknown error in C:\...\email.php on line 7
|