I need some help !! Please
Posted: Sun Jan 11, 2004 9:41 am
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for newbi@hotmail.com in C:\fyp\gs\mail_hr.php on line 30
Error sending Job Application
what the error about ?? and how to debug ??
--some of part from coding---
....
$to = "newbi@yahoo.com";
$subj = "Online Application";
$header = "\nForm: newbi@hotmail.com\n";
$body = "\nName: " . quotemeta ($applicant) .
"\nPhone: " . quotemeta ($phone) .
"\nAddress:\n" . quotemeta ($addr) .
"\nE-mail: " . addslashes ($email) .
"\nCountry: $country" .
"\nPosition: $position" .
"\nAvailable immediately: $avail\n";
$success = mail($to, $subj, $body, $header);
$textfile = fopen($dir . "/details.txt","w");
fwrite($textfile, $body);
fclose($textfile);
if($success)
{
echo ("Your application has been sent successfully.</B><BR><BR>" .
"We will be in touch shortly; in the meantime, thank you " .
"for your interest in Phop's Bicycles.");
}
else
{
echo ("Error sending Job Application.");
}
?>
Error sending Job Application
what the error about ?? and how to debug ??
--some of part from coding---
....
$to = "newbi@yahoo.com";
$subj = "Online Application";
$header = "\nForm: newbi@hotmail.com\n";
$body = "\nName: " . quotemeta ($applicant) .
"\nPhone: " . quotemeta ($phone) .
"\nAddress:\n" . quotemeta ($addr) .
"\nE-mail: " . addslashes ($email) .
"\nCountry: $country" .
"\nPosition: $position" .
"\nAvailable immediately: $avail\n";
$success = mail($to, $subj, $body, $header);
$textfile = fopen($dir . "/details.txt","w");
fwrite($textfile, $body);
fclose($textfile);
if($success)
{
echo ("Your application has been sent successfully.</B><BR><BR>" .
"We will be in touch shortly; in the meantime, thank you " .
"for your interest in Phop's Bicycles.");
}
else
{
echo ("Error sending Job Application.");
}
?>