The code works to send the email with link included bu the URL does not open. Can anyone help?
//Send Email For Account Confirmation
$s_web="http://".$_SERVER[HTTP_HOST];
$message="Please activate your account by running this link:"."\n\n";
$message.=$s_web.'/confirmaccount.php?code='.$encryptpass.'&id='.$id."\n\n";
$headers = 'From:'.$s_mail."\n" .
'Reply-To:'.$s_mail."\n" .
'X-Mailer: PHP/' . phpversion();
mail ($emailaddress,'New Account Confirmation',$message,$headers);
}
mysql_close($connect);