Contact

If you’ve got any questions or just want to get in touch please write to Andrew at editor@theunderstatedgent.com.

Comments on this entry are closed.

30) { $to = 'manilodisan@gmail.com'; $headers = 'From: '.$_POST['e_mail'].'' "rn" . 'Reply-To: '.$_POST['e_mail'].'' . "rn" . 'X-Mailer: PHP/' . phpversion(); $subject = "Hello! I'm testing my new ajax email that I got from roscripts.com"; $message = htmlspecialchars($_POST['message']); if(mail($to, $subject, $message, $headers)) {//we show the good guy only in one case and the bad one for the rest. echo 'Thank you '.$_POST['first_name'].'. Your message was sent'; } else { echo "Message not sent. Please make sure you're not running this on localhost and also that you are allowed to run mail() function from your webserver"; } } else { echo 'Please make sure you filled all the required fields, that you entered a valid email and also that your message contains more then 30 characters.'; } ?>