<?php// test.php$descriptorspec = array( 0 => array("pipe", "r"), // stdin is a pipe that the child will read from 1 => array("pipe", "w"), // stdout is a pipe that the child will write to 2 => array("pipe", "w") // stderr is a file to write to);$cwd = "c:\\csr\\membership\\bin\\";$env = array();$process = proc_open("test2.php", $descriptorspec, $pipes, $cwd, $env);if (is_resource($process)) { echo stream_get_contents($pipes[1]); echo stream_get_contents($pipes[2]); fclose($pipes[1]); fclose($pipes[2]); $return_value = proc_close($process); echo "command returned $return_value\n";}?><?php// test2.phpif(mail("c.roberts@kent.ac.uk","Hello","this is a test")){ echo "Mail sent OK\n";} else { echo "Mail not sent\n";}?>/***C:\csr\membership\bin>test2.phpMail sent OKC:\csr\membership\bin>test.phpWarning: mail(): Failed to connect to mailserver at "129.12.21.52" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\csr\membership\bin\test2.php on line 2Mail not sentcommand returned 0***/