Re: I need some help or a .45 magnum
| From: | G Schneider | Date: | Mon, 06 Aug 2001 17:12:31 +0000 |
| Subject: | Re: I need some help or a .45 magnum | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8684@lists.php.net to get a copy of this message | ||
If the mail function doesn't work - PHP may never give you an error message.
It may just hang.
Many providers don't let their SMTP servers accept relays. This is needed
for the PHP mail() function to work.
--
++++++++++++++++++++++++++++++++++++++++
http://www.webmastersdog.com
where website owners go. and talk about stuff.
++++++++++++++++++++++++++++++++++++++++
"Rodney" <mryendor@yahoo.com> wrote in message
news:20010804164322.78791.qmail@pb1.pair.com...
> Hello,
>
> I'm new to php. I'm having trouble making the mail function work.
> I wrote a simple mail script that supports mail delivery when a user
> fills out a form. It's not working.
>
> The editor tells me this is the problem:
>
> mail("mryendor@yahoo.com", "Feedback", $msg, $mailheaders);
>
> However I don't see it.
>
> Here is the complete script:
>
> <?php_tracking_vars?>
> <?php
> $msg = "Sender's Full Name:\t$sendor_name\n";
> $msg .= "Sender's Email:\t$sender_email\n";
> $msg .= "Did you like this 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";
>
> if (($sender_email == "") || ($message == "")) {
> header(location: http://127.0.0.1/show.feedback.html");
> exit;
> }
> mail("mryendor@yahoo.com", "Feedback", $msg, $mailheaders);
>
> echo "<H1 align=center>Thank you.$sender_name</H1>";
> echo "<P align=center>We dig you feedback.</P>";
>
> ?>
>
>
> I am stuck like chuck on this one. Any help is appreciated.
>
> rw
>
>