Fw: [PHP] help me please
| From: | Rick Emery | Date: | Tue, 25 Feb 2003 18:03:40 +0000 |
| Subject: | Fw: [PHP] help me please | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137102@lists.php.net to get a copy of this message | ||
You don't have to break up the strings:
mail("$ToName <$ToEmail>",$ToSubject, $EmailBody, "From: $FirstName
<$Email>");
What are values of $ToName and $FirstName?
why did you submit tghis 3 times?
----- Original Message -----
From: "bionicegg" <mark@bionicegg.com>
To: <>
Sent: Tuesday, February 25, 2003 11:38 AM
Subject: [PHP] help me please
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