Doğrulama e-posta gönderilir

0 Cevap

Hey, ben aboneye bir doğrulama e-posta göndermek için aşağıdaki kod parçasını kurdunuz. Ama ben bu sorun olup olmadığını bilmiyorum, http://localhost/ site test için kullanıyorum (kendi başıma Test) onlara ulaşmak için görünmüyor. Ayrıca ben doğrulama e-posta gönderildi olmalıdır kadar gönderilen mesaj alıyorum. İşte kod:

if(mysql_query("insert into users(username,password,email,fname,lname,hash) values('$username','$password','$email','$fname','$lname','$hash')")or die (mysql_error ())){
 echo "Welcome, You have successfully signed up. Please check the verification e-mail sent to you.";
 $to = $email; 
   $subject = 'Signup | Verification'; 
   $message = ' 

     Thanks for signing up! 
      Your account has been created, you can login with the following credentials after you have activated your account by pressing the url below. 

      ------------------------ 
      Username: '.$username.' 
     Password: '.$password.' 
     ------------------------ 

     Please click this link to activate your account: 

     http://www.JMtoday.com/verify.php?email='.$email.'&hash='.$hash.' 

   ';

    $headers = 'From:noreply@JMtoday.com' . "\r\n";  
    mail($to, $subject, $message, $headers); 
 }

0 Cevap