hi..
im trying to send email to the user who register to my website..
SMTP server response: 501 5.5.4 Invalid Address in D:\Domains\lelys.org\wwwroot\reg_save.php on line 66
this is the error im getting..
if($res)
{
//echo "record added";
//$count = 1;
$to = $mail;
$sub = "Confirm Mail From LeLys";
$header = "from: LeLys<support@lelys.org>";
$message = "confirm link \r\n";
$message.= "click to activete your account \r\n";
$message.= "http://www.lelys.org/confirmation.php?key=$ccode";
$sending = mail($to,$sub,$message,$header);
if($sending)
{
//echo ("email comfirm");
?>
<body>
<table width="100%" border="0" align="center" bgcolor="#DAF5FE">
<tr>
<td height="233"><table width="94%" border="1" align="center" bgcolor="#F0FCFF">
<tr>
<td height="178"><center><h2>Your Details have been Added</h2><br />Please check for a Confirmation email</center></td>
</tr>
</table></td>
</tr>
</table>
<?php
}
else
echo("email not sent");
}
this is the code im using..
and
$sending = mail($to,$sub,$message,$header);
this is line 66 in my code.. PLZ HELP...