hi all,
i am doing a project on email php and after i've installed all the necessary programs on my station, i can't send email. however, it show the information i've input and these confirmation are done in the php codes.
when i checked my mail, there is no new mail sent by the php and shows no error message at all. what can i do to solve this problem.
my php codes looks like this:
<?PHP
if(($_GET['sender_name'] == "") ||
($_GET['sender_email'] == "") ||
($_GET['message'] == ""))
{
header("Location:contact.htm");
exit;
}
$to="
[email protected]";
$subject="PBL Help Desk";
$msg="E-MAIL SENT FROM PBL Site\n";
$msg.="Sender's Name:\t$_GET[sender_name]\n";
$msg.="Sender's E-Mail:\t$_GET[sender_email]\n";
$msg.="Message:\t$_GET[message]\n";
$mailheaders="From: My Site <
[email protected]>\n";
$mailheaders.="Reply-To: $_GET[sender_email]\n";
$mailheaders.="Message: $_GET[message]\n";
//$sendmail_from = mail($to,$subject,$msg,$mailheaders);
//ini_set($sendmail_from, '
[email protected]');
mail($to,$subject,$msg,$mailheaders);
?>
<html><head>
<title>Temasek Polytechnic Online PBL Survival Kit</title>
</head><body>
<H1>The following email has been sent:</H1>
<p><strong>Your Name:</strong><br>
<? echo "$_GET[sender_name]"; ?>
<p><strong>Your Email Address:</strong><br>
<? echo "$_GET[sender_email]"; ?>
<p><strong>Message:</strong><br>
<? echo "$_GET[message]"; ?>
</body></html>
and my html code looks like this:
<form action="helpdesk.php" method="GET" name="HelpDesk" id="HelpDesk">
<p> </p>
<p>From: &n bsp; &nbs p;
<input name="sender_name" type="text" id="sender_name" size="20">
<br>
<br>
Your Email Address:
<input name="sender_email" type="text" id="sender_email" size="30">
<br>
<br>
Your message</p>
<p>
<textarea name="message" cols="50" wrap=virtual rows="10" id="message"></textarea>
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">
<input name="Reset" type="submit" id="Reset" value="Reset">
</p>
</form>
please help me out....
desperate sunsetbay