simple flash php form, help please
| From: | Paul Ferrie | Date: | Sun, 22 Jun 2003 16:12:47 +0000 |
| Subject: | simple flash php form, help please | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152454@lists.php.net to get a copy of this message | ||
Hi again guys :)
I am having problems with this little email user script for my website. I
have set this script here to run with flash outputing the information. When
i run the script in the browser i grt this error
"Warning: Failed to Receive in C:\apache\htdocs\innovat\forum\mailuser.php
on line 18"
I aint any php expert just some simple stuff i know.
You can copy the code and test it just change the email information.
cheers for any help guys.
<?
$username = "djd";// set these two so that we do not need flash to output
the information
$users_email="email@email.co.uk";
$ToEmail = "$users_email";
$date = date("m/d/Y H:i:s");
$ToName = "$username";// out put from flash
$ToSubject = "Email from mywebsite.co.uk";
$email = "email@email.co.uk";
$msg = "Type whatever here";
$EmailBody = "Sent By: $username\n\nMessage Sent:\n$msg\n\n";
$EmailFooter="\nSent on\n Date/Time: $date";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From:
".$username."
<".$email.">");// line 18
print "retval=1&$ToEmail&ToSubject&$Message&$username&$email";// This
just
returns output to show all variables have been passed ok.
?>