This is php mail code
            $to      = 'mymail@mail.com'; 
            $subject = 'the subject'; 
            $message = 'hello'; 
            $headers = 'From: raghu@digiverti.com' . "\r\n" . 
                'Reply-To: mymail@mail.com' . "\r\n" . 
                'X-Mailer: PHP/' . phpversion(); 
               if(mail($to, $subject, $message, $headers))
              { 
                echo "Sent"; 
              }else{ 
              echo "Not Sent";
              print_r(error_get_last()); 
            }
Please let me knowhow display actual error why mail not sending
