hi im new in php and i do form in flash when i hit "send" it will load php file with details: where to send (email)..(i upload it to the my site but i diden't see no mail when i hit "send") i don't know if the script is right can someone look at the script and tell me if it right? and if there is a another way to do it (flash with php) if someone can help it will be great . <?php $sendTo = "cosher1@gmail.com"; $subject = "contact form"; $headers = "From: " . $_POST["name"]; $headers .= "<" . $_POST["email"] . ">\r\n"; $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-Path: " . $_POST["email"]; $message = $_POST["message"]; mail($sendTo, $subject, $message, $headers); ?> PHP:
check if your mail function is active on the hosting side also put this on the begining of the file and see if somethings wrong <?php error_reporting(E_ALL); ?> anyway, in the most cases its hosting issue which disabled mail function
create a php file where you just type <?php phpinfo(); ?> or just do it in this way <?php if(mail($to, et. etc.)) { print "sent"; }else{ print "not"; } ?>