discus
08-13-2005, 08:12 PM
Now, I've found my Default SMTP Virtual Server DOESN'T WORK properly too.
This script:
<html>
<head>
<title>Listing 10-5</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#cbda74" vlink="#808040"
alink="#808040">
<?
$form = "
<form action=\"listing10-5.php\" method=\"post\">
<input type=\"hidden\" name=\"seenform\" value=\"y\">
<b>Send us your comments!</b><br>
Your Name:<br>
<input type=\"text\" name=\"name\" size=\"20\" maxlength=\"20\" value=\"\"><br>
Your Email:<br>
<input type=\"text\" name=\"email\" size=\"20\" maxlength=\"40\" value=\"\"><br>
Your Comments:<br>
<textarea name=\"comments\" rows=\"3\" cols=\"30\"></textarea><br>
<input type=\"submit\" value=\"submit!\">
</form>
";
// If we haven't already seen the form ($seenform passed by hidden
// form value), show the form.
if ($seenform != "y") :
print "$form";
else :
// change $recipient to be the recipient of the form information
$recipient = "yourname@youremail.com";
// email subject
$subject = "User Comments ($name)";
// extra email headers
$headers = "From: $email";
// send the email or produce an error
mail($recipient, $subject, $comments, $headers) or die("Could not send
email!");
// send the user an appropriate message
print "Thank you $name for taking a moment to send us your comments!";
endif;
?>
</body>
</html>
sends no mail in the target folder C:\Inetpub\mailroot\Drop.
When I start the smtp virt. server, get the alert:'The service cannot accept control messages at this time. Check the Windows Event Viewer for details.', but the server seems running OK (no red mark on the icon, in the context menu 'start' is inactive & 'stop' is active).
There is no failure report of smtp service in the EventViewer, but just 2 informations(event descriptions):
'EventID:7035 The SMTP service was succesfully sent a start control'
'EventID:7036 The SMTP service entered the running state'
SMTP variable in the php.ini is set to localhost.
Should I do some configuration of Outlook Express even for my local domain ?
I'm getting so tired trying to make all little wheels spinning.
T
This script:
<html>
<head>
<title>Listing 10-5</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#cbda74" vlink="#808040"
alink="#808040">
<?
$form = "
<form action=\"listing10-5.php\" method=\"post\">
<input type=\"hidden\" name=\"seenform\" value=\"y\">
<b>Send us your comments!</b><br>
Your Name:<br>
<input type=\"text\" name=\"name\" size=\"20\" maxlength=\"20\" value=\"\"><br>
Your Email:<br>
<input type=\"text\" name=\"email\" size=\"20\" maxlength=\"40\" value=\"\"><br>
Your Comments:<br>
<textarea name=\"comments\" rows=\"3\" cols=\"30\"></textarea><br>
<input type=\"submit\" value=\"submit!\">
</form>
";
// If we haven't already seen the form ($seenform passed by hidden
// form value), show the form.
if ($seenform != "y") :
print "$form";
else :
// change $recipient to be the recipient of the form information
$recipient = "yourname@youremail.com";
// email subject
$subject = "User Comments ($name)";
// extra email headers
$headers = "From: $email";
// send the email or produce an error
mail($recipient, $subject, $comments, $headers) or die("Could not send
email!");
// send the user an appropriate message
print "Thank you $name for taking a moment to send us your comments!";
endif;
?>
</body>
</html>
sends no mail in the target folder C:\Inetpub\mailroot\Drop.
When I start the smtp virt. server, get the alert:'The service cannot accept control messages at this time. Check the Windows Event Viewer for details.', but the server seems running OK (no red mark on the icon, in the context menu 'start' is inactive & 'stop' is active).
There is no failure report of smtp service in the EventViewer, but just 2 informations(event descriptions):
'EventID:7035 The SMTP service was succesfully sent a start control'
'EventID:7036 The SMTP service entered the running state'
SMTP variable in the php.ini is set to localhost.
Should I do some configuration of Outlook Express even for my local domain ?
I'm getting so tired trying to make all little wheels spinning.
T