Solved: PHP Question

Kekes Stamatis skekes at internet.gr
Thu Oct 11 18:45:02 EEST 2001


Eyxaristo poly gia ti voitheia paidia.
To thema lythike kanontas mia function kai efarmozontas copy - paste ton
kodika tou Fani.
Opote idou i function

fuction my_mail( $mailhost, $sender, $recipient, $body )
{
    $fp = fsockopen ("mail.lame.gr", 25, $errno, $errstr, 30);
    if (!$fp)
    {
        echo "Error while comminucating with smtp host: $errstr ($errno)\n";
    }
    else
    {
        fputs ($fp, "EHLO $mailhost\n");
        fputs ($fp, "MAIL From: $sender\n");
        fputs ($fp, "RCPT To: $recipient\n");
        fputs ($fp, "DATA\n");
        fputs ($fp, "From: $sender\n Subject: $subject\n \n $body \n .\n");
        fputs ($fp, "QUIT\n" );
        fclose ($fp);
    }
}





More information about the Linux-greek-users mailing list