If you couldn't send mail from window server, please set the default confuguration for Windows in your code.
Ex:
ini_set("sendmail_from", "user_name@domain_name");
ini_set("SMTP","localhost");
ini_set("smtp_port","25");