The success message alert is not working...
My code:
$from="contactus@test.com.au";
$to = $email;
$subject = "Sign Up Mail verification ";
$message = 'test';
if(mail($to,$subject,$message,$headers)){
//echo "Your Account Activate will be Soon";
echo '<script type="text/javascript">alert("Confirmation sent to your registered email.
Please check your inbox.");</script>';
echo '<script type="text/javascript">window.location.assign("http://test.com.au/register/");
</script>';
}
What is the problem with this code?