[Solved] php mail form doesn’t work [closed]

The below now works. It’s just small syntactic mistakes, you had a few additional ; and this line is wrong and presumably a mistake: $subject = $email = $_POST[‘subject’]; I also moved the function outside of the if statement…it’s not incorrect to have it there, it just looks a bit weird. function clean_text($string) { $bad … Read more