php contact form mail - function

Avatar
  • Answered
i have written code for php contact form. but not working "; $message = "Name: $name"; if(mail($to, $subject, $headers, $message)){ echo 'mail sent'; } else{ echo 'error in server handling'; } } ?> Send
Avatar
Arn
Hello, Apologies for the problem with your PHP code for form mail. We do not provide coding assistance as it is out of the scope of our support. However, you may want to follow the code provided in this article. It may provide some insight into the problem that you're having. If you require further assistance, then you may want to consult with a developer or an online forum specific to your issue. If you have any further questions or comments, please let us know. Regards, Arnel C.