The following script was being used for sending form data to an email id. Now the server has been changed. The new server does not support sendmail. I have been told to set the path to localhost 25. I do not know php. I have just started learning. Please help me to set the path or give other alternative method. The server does not support cgi script also.
<?php
$TO = "hr-mt@infovisionsoftware.net";
$MP = "/usr/sbin/sendmail -t";
?>
<?php
if ($frmAction)
{
?>
-------- html here --------------
<?php
$fd = popen($MP,"w");
fputs($fd, "To: $TO\n");
//fputs($fd, "From: $firstname <$email>\n");
fputs($fd, "From: careers@mysite.net\n");
fputs($fd, "Subject: Application for the post of a $post\n");
fputs($fd, "X-Mailer: PHP3\n");
fputs($fd, "First Name: $firstname\n");
fputs($fd, "Middle Name: $middlename\n");
fputs($fd, "Last Name: $lastname\n");
fputs($fd, "Email Id: $email\n");
pclose($fd);
exit;
}
else
{
?>
<?php
} // end else clause
?>