PHP again guys.....
I thought this code was supposed to send an email to me..... but i didn't get any when i ran the code or do i have to host before it works?? here is the code: $sql = $mysqli->query("INSERT INTO users(firstname,lastname,username,email,password,vkey) VALUES('$fname','$lname','$uname','$email','$password','$vkey')"); if ($sql) { // send verification maessage to email $to = $email; $subject = "Email Verification"; $message = "<a href='http://localhost/project3/verify.php?vkey=$vkey'>Verify Account</a>"; $headers = "From: iksteve247@gmail.com \r\n"; $headers .= "MIME_Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; mail($to,$subject,$message,$headers); header('location:thankyou.php'); }else{ echo $mysqli->error; } i don't know what went wrong