a user ($user_email) has completed the contact form:
\"$content\"
"; $header.= "MIME-Version: 1.0\r\n"; $header.= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $header.= "X-Priority: 1\r\n"; if ( mail($to_email, $subject, $body, $header)) { echo("success"); } else { echo("fail"); } } else { echo ("email and content cannot be empty"); } ?>