C localhost can send messages by mail? I can't do this, this code displays "messege acepted for delivery". no error does not produce what, but the message does not come.

if (mail("зкшьук@gmail.com", "the subject", "Example message", "From: bondarvadim95@gmail.com \r\n")) { echo "messege acepted for delivery"; } else { echo "some error happen"; } 

Sending like this

  mail("зкшьук@mail.ru", "the subject", 'авыавы', "From: webmaster@example.com \r\n" ."X-Mailer: PHP/" . phpversion()); 

    1 answer 1

    It is impossible if the mail server is not configured (configured?). Denwer "sends" to a special daddy

     \tmp\!sendmail 

    UPD:
    From Denver it is impossible, there is a stub in it.
    UPD2:
    for perverts: you can, if this stub rewrite. But it is very difficult.

    • I sent mail to Denver: I put some kind of monitor (google on request "send mail to Denver"), he listened to that same temporary daddy and sent them when the messages appeared in it. Nothing to rewrite i. do not, everything is already done. The only thing - it was necessary to have an account on one of the mail servers. Accordingly, do not engage in spam, you will not send mailings and it is better to create a new account, just in case)) But again, it’s better to use ready-made solutions for distribution (at least PHPList, not standard mail). - BOPOH