function katorii zameniat mail(); na php
esli vi sidite na besplatnom hostinge i vam zakrili functiu mail(); no vi vsetaki hotite otaslati pismo nu tak vot (sevodnea delal) ... esli komu ne nado tak hoti ne rugaitesi :) //some functions that i made to make my life easy function sk_mail($host,$from,$to,$subject,$message) { //eto functia zameniat mail() v php //esli server otvetit oshibkoi na adnu iz komand to script zakon4it ispolnenia. //tak bivaet na mail.md i na drugih serverah, mojet sdelaiu 4tob on povtorial //komandu pri neuda4i. Pojalusta ne ispolizuite etu functiu dlea spama ! $port=25; $con=fsockopen($host,$port,$er_n,$er_t,4); if(!$con) exit; // $result=fgets($con,256); if(substr($result,0,3) != "220") exit; // fputs($con,"HELO $host\n"); $result=fgets($con,256); if(substr($result,0,3) != "250") exit; // fputs($con,"MAIL FROM: $from\n"); $result=fgets($con,256); if(substr($result,0,3) != "250") exit; // fputs($con,"RCPT TO: $to\n"); $result=fgets($con,256); if(substr($result,0,3) != "250") exit; // fputs($con,"DATA\n"); $result=fgets($con,256); if(substr($result,0,3) != "354") exit; // fputs($con,"To: $to\nFrom: $from\nSubject: $subject\n$message\n.\n"); $result=fgets($con,256); if(substr($result,0,3) != "250") exit; // fputs($con,"QUIT\n"); $result=fgets($con,256); if(substr($result,0,3) != "221") exit; // fclose($con); return true; } // vot kak polizovatsea $result=sk_mail("ournet.md","admin@mail.md","pavel@mail.md","bad_guy","I am the admin and i will kick your ass"); if($result) { echo "message sent !"; } else { echo "message not sent !"; }?> // etim je sposobom mojna podkliu4itsea k "TELNET","FTP","HTTP" ... ili k routeru :)