Hi
I am new to PHP and i had to transfer a php page to a windows server. I setup evrything and the page in general is working fine but i have the following problem with a send mail function.
It gives me the following error:
Warning: mail() [function.mail]: SMTP server response: 530 5.7.3 Client was not authenticated in C:\Inetpub\wwwroot\LocalUser\ftphhb\rascals\rascals\doregister.php on line 81
and line 81 is : mail($emailaddress,"New Registration",$etext,$headers);
and here is the full code:
<?
$emailaddress = "example@example.com";
$name = $HTTP_GET_VARS['name'];
$dob = $HTTP_GET_VARS['dob'];
$email = $HTTP_GET_VARS['email'];
$eyecolour = $HTTP_GET_VARS['eyecolour'];
$haircolour = $HTTP_GET_VARS['haircolour'];
$height = $HTTP_GET_VARS['height'];
$shoesize = $HTTP_GET_VARS['shoesize'];
$height = $HTTP_GET_VARS['height'];
$uploadimage = $HTTP_GET_VARS['image1'];
$etext = "<html><head></head><body>" .
"Name:$name<br>" .
"DOB:$dob<br>" .
"Email:$email<br>" .
"Eyecolour:$eyecolour<br>" .
"Haircolour:$haircolour<br>" .
"Height:$height<br>" .
"Shoesize:$shoesize<br>" .
"Height:$height<br>";
$headers = 'From: [email]example@example.com[/email]'. "\r\n" .
'Content-type: text/html;charset=iso-8859-1' . "\r\n" .
'Reply-To: [email]example@example.com[/email]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($emailaddress,"New Registration",$etext,$headers);
?>
Please help me.
Thanks inadvance