<?php ini_set( 'display_errors', 1 );  error_reporting( E_ALL );
  $from = "test@alanadiniz"; 
 $to = "aliciemailadresi"; 
 $subject = "PHP mail kullanımı";
  $message = "PHP mail çalışıyor";  
$headers = "From:" . $from;  

mail($to, $subject, $message, $headers);  
echo "Email gönderildi.";?>
Çalışmıyor, hata nedir ?