Re: help please

From: Date: Tue, 25 Feb 2003 18:24:49 +0000
Subject: Re: help please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137107@lists.php.net to get a copy of this message
Mark, you've GOT to give us something to work on. We're not ESP, well, at least I am not. Try debugging a bit. Echo all values just before you do the mail(), see whether they really are what you thought they were. Try a simple script that will only send a mail, take the example from the manual (www.php.net/mail) Try setting the error warning level high for a while, by adding this to the file: error_reporting (E_ALL); PS please keep the discussion in the list At 19:15 25-2-03, you wrote:
Chris, Im so sorry about the posting three times, I didnt know how to do it, then I subscribed after I sent it twice. I cant figure out what is wrong with the script. I do not get an error message. Basically, I am suppsed to get an email with the info that the user entered. I get the email from http://www.bionicegg.com/html/Mail.html , but It doesnt work for http://www.nypalet.com/Mail.html . I do not know jack about PDP, I got the script from www.flashkit.com. Thanks so much for the response. Mark J ----- Original Message ----- From: "Chris Hayes" <chayes@antenna.nl> To: "bionicegg" <mark@bionicegg.com> Sent: Tuesday, February 25, 2003 1:07 PM Subject: Re: [PHP] help please There is no need to post this thrice. Anyway. What went wrong? Did you get an error message? Are both sites on the same machine? At 18:40 25-2-03, you wrote:
Hello all,
    I am having problems with a script.  The script works great on one
of my
sights, however, when I transferred it to another site, it does not function. I contacted my hosting company (both sites are on the same server), they told me that I needed to check the script and that it has nothing to do with them, since they ran a test.php and it worked fine. Here is the script: <?PHP $ToEmail = "mark@nypalet.com"; $ToSubject = "Flash Contact Form"; $EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n"; mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From:
".$FirstName."
<".$Email.">"); ?> Please if anyone knows anything about this stuff (Im a newbie to this)
You
help is greatly appreciated! Thanks in advance, mark johnson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#137107) next »