<?php
$to      = 'marius@idea.lt';
$subject = 'Test';
$message = 'Testas mailo';
$headers = 'From: nerrige@gmail.com' . "\r\n" .
    'Reply-To: nerrige@gmail..com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

if(mail($to, $subject, $message, $headers)) {
echo 'ok'; 
} else { echo 'beda'; }

?>
