I (mike_minerva@yahoo.com) benim e-posta adresimin posta göndermek için bu basit php mail script almak için çalışıyorum ve ben çalışmak için alınamıyor. Ben doğru klasöre (/ etc / sbin / sendmail) için php.ini benim sendmail_path ayarlanmış ancak bu yardım görünmüyordu. Ben başka ne eksik olabilir? Komut dosyası her zaman hatası döndürür.
<?php
$to = "mike_minerva@yahoo.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
if(mail($to,$subject,$message,$headers))
echo "Mail Sent.";
else
echo "failure";
?>