I'm using an email validation code to verify user accounts, and I'm getting some strange behavior. The following is the code:
// send e-mail to ...
$to=$email;
// Your subject
$subject="Your confirmation link here";
// From
$header="from: ECE Projects <webmaster@eceprojects.co.cc>";
// Your message
$message="Click the link to activate your account. \n\r";
$message.="http://www.eceprojects.co.cc/userPages/confirmation.php?passkey=$confirm_code";
// send email
$sentmail = mail($to,$subject,$message,$header);
The problem lies in the link. My website is http://www.eceprojects.co.cc. When i use the full url, the email is never sent. However, if I delete one of the domain extensions ".co" or ".cc" it sends an email with no problem. So the problem seems to be using ".co.cc". For some reason this creates an error. Any thoughts?




