Re: Feedback form with mail function....
| From: | Jason Wong | Date: | Tue, 22 Apr 2003 07:10:07 +0000 |
| Subject: | Re: Feedback form with mail function.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144773@lists.php.net to get a copy of this message | ||
On Tuesday 22 April 2003 12:35, Deependra b. Tandukar wrote:
> I have a web form given below, processed by the PHP code which also given
> below. Virtually it seems to me, it should work, but I never get any
> feedback form, I have tried several times but no success.
Not getting any feedback form implies that your code for mailing is not
working correctly.
Have you tried the simplest test case to ensure that mail() is working
correctly?
> Anybody any idea? What do I need to do to make the code work...
> <?php
> $msg = "$fname";
> $sendto = "dtandukar@icimod.org.np";
> $sub = "Feedback...";
>
> $mailheaders = "From: My Site";
> $mailheaders .= "Reply-To: $email";
Did you not read the manual which says "You must use \r\n to seperate
headers"?
> mail($sendto,$sub,$msg, $mailheaders);
> ?>
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
QOTD:
"She's about as smart as bait."
*/