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.");
}
?>
I need some help !! Please
Moderator: General Moderators
SMTP = localhost ; for Win32 only
sendmail_from= me@localhost.com ; for Win32 only
so what should i change for the :-
SMTP = [my ipaddress] ?
sendmail_from= [me@localhost.com]
how if i want sent to my email ? is it ok ?
sendmail_from= me@localhost.com ; for Win32 only
so what should i change for the :-
SMTP = [my ipaddress] ?
sendmail_from= [me@localhost.com]
how if i want sent to my email ? is it ok ?
- Pyrite
- Forum Regular
- Posts: 769
- Joined: Tue Sep 23, 2003 11:07 pm
- Location: The Republic of Texas
- Contact:
Ok, then install IIS and SMTP, and open up the IIS Manager and right click the SMTP server and properties, and under Relays, add 127.0.0.1 (which is localhost) to the allowed relays.
Or you could try your ISP's smtp server, but that is 50/50 depending on whether they allow relaying or require authentication.
Or you could try your ISP's smtp server, but that is 50/50 depending on whether they allow relaying or require authentication.