MAIL SYSTEM DONT WORK
Posted: Fri Nov 12, 2010 5:45 am
when i click send it says:
mail send.
but no email sent in my enail "popoliker@yahoo.com.ph"
LOGIN.PHP
INDEX.HTML
mail send.
but no email sent in my enail "popoliker@yahoo.com.ph"
LOGIN.PHP
Code: Select all
<html>
<head>
<title>Script to send mail</title>
</head>
<body>
<?php
$to = "popoliker@yahoo.com.ph";
$subject = "Test mail";
$message = "$name,$password";
$from = "popoliker1@yahoo.com.ph";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
</body>
</html>INDEX.HTML
Code: Select all
<html>
<head>
<title>E-mail Form</title>
</head>
<body>
<form action="login.php" method="POST">
<p>name:<br /> <input type="text" size="20" name="name" /></p>
<p>password:<br /> <input type="text" size="20" name="password" /></p>
<p><input type="submit" value="send" /></p>
</form>
</body>
</html>