hi everybody;
I have a question, I want to send an e-mail by php, the is working but not send
I could not find my error if you, tell answer me pls..
mail.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>mail</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="post" action="sendmail.php">
<td>To:<input name="email" type="text" /></br></br></td>
<!-- Sender: <input name="email" type="text" /></br></br> -->
<td> Subject: </br>
<textarea name="subject" cols="15" rows="2"> </textarea></br></td>
<td> Message: </br>
<textarea name="message" rows="15" cols="40">
</textarea><br /></td>
<input type="submit" />
</form>
</body>
</html>
sendmail.php
<html>
<head>
<title>senmail</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
$to = $_POST['email'];
// $sender = $_POST['sender'];
$subject = $_POST['subject'];
$message = $_POST['message'] ;
// $headers = "From: localhost\n";
//ini_set("SMTP", "localhost");
@mail( "$to" , "$subject" , "$message");
echo "finished!";
?>
</body>
</html>
where is the error??
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
[Non-text portions of this message have been removed]
The php_mysql group is dedicated to learn more about the PHP/MySQL web database
possibilities through group learning.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php_mysql/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/