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 PROTECTED]"; $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 PROTECTED]"; $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. ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php