Originally, when i used dokuwiki, it can not send email
After that, i tried the following script..
it printed "Message not sent!!!"..
i wonder what the problem is..
thanks
<?php
$to = "my_email@gmail.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
echo (mail($to,$subject,$message,$headers)) ? 'Message sent!!!' : 'Message not sent!!!';
?>
After that, i tried the following script..
it printed "Message not sent!!!"..
i wonder what the problem is..
thanks
<?php
$to = "my_email@gmail.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
echo (mail($to,$subject,$message,$headers)) ? 'Message sent!!!' : 'Message not sent!!!';
?>