mail() question
| From: | Kyungsik Yoon | Date: | Sat, 10 Jun 2000 15:03:13 +0000 |
| Subject: | mail() question | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-381@lists.php.net to get a copy of this message | ||
Hi,
To be able to use the mail(), do need to run my own smtp server? In the PHP config file, I specify
smtp server as my ISP's. And when I try do execute this code (from Julie Meloni's PHP
Essentials);
<?php_track_vars?>
<?php
$msg = "Sender's Full Name:\t$sender_name\n";
$msg = "sender's E-Mail:\t$sender_email\n";
$msg = "Did You like the site?\t$like_site\n";
$msg = "Additional Message:\t$message\n\n";
$mailheaders = "From: My Web Site\n";
$mailheaders = "Reply-To: $sender_email\n\n";
mail("kyungsik@mac.com", "Feedback Form", $msg, $mailheaders);
echo "<h1 align=center>Thank you, $sender_name</h1>";
echo "<p align=center>We appreciate your feedback.</p>";
?>
I get this error message:
Warning: Failed to Connect in C:\Apache\www\public\htdocs/php_exer/do_sendfeedback.php on line 11
Can someone help?