in php is function mail(), try to use it
mail( $mail, $subject,$messaga,"","-fmarco_m@inbox.lv");
if this stupid mail doesn't work then write to my mail and i send you cool smtp mail class that doesn't need any php.ini corrections i use it on my server its work very cool