<?php $theName = $_POST['name']; $theEmail = $_POST['email']; $thePhone = $_POST['phone']; $theMessage = $_POST['message']; if( $theName == true ) { $sender = $theEmail; $receiver = "mike@katherinefrank.com"; $client_ip = $_SERVER['REMOTE_ADDR']; $email_body = "Name: $theName \nEmail: $sender \nPhone: $thePhone \nMessage: $theMessage \nIP: $client_ip; $email_body_auto_reply = "Hello $theName, \nThis is Michael Patten, Production Manager of Katherine Frank Creative Inc. This is the auto reply to notify that I have received your message! Thank you."; $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion (); $extra_auto_reply = "From: $receiver\r\n" . "Reply-To: $receiver \r\n" . "X-Mailer: PHP/" . phpversion (); mail( &sender, "Auto Reply - Re: Katherine Frank Creative Message", $email_body_auto_reply, $extra_auto_reply ); if( mail( $receiver, "Katherine Frank Creative Message", $email_body, $extra ) ) { echo "success=yes"; } else { echo "success=no"; } } ?>