$tmp_str_value) { if ($tmp_str_variable != 'x' and $tmp_str_variable != 'y' and $tmp_str_variable != 'required_fields' and $tmp_str_variable != 'send_to' and $tmp_str_variable != 'form_desiredlocation') { $tmp_str_message .= $tmp_str_variable . ': ' . $tmp_str_value . "\r\n"; $_SESSION[$tmp_str_variable]=$tmp_str_value; } } $section_of_town = ""; if(isset($_REQUEST["form_desiredlocation"]) && is_array($_REQUEST["form_desiredlocation"])) { while(list($key, $value) = each($_REQUEST["form_desiredlocation"])) { if($value != "") $section_of_town = $section_of_town . ", " . $value; } $tmp_str_message .= 'form_desiredlocation: ' . substr($section_of_town,2) . "\r\n"; } else $tmp_str_message .= 'form_desiredlocation: UNKNOWN' . "\r\n"; mail('lead@route121.com', 'RS Corporate Housing Reservation', $tmp_str_message); mail('lead@mymsolutionsinc.com', 'RS Corporate Housing Reservation', $tmp_str_message); mail('route121leads@yahoo.com', 'RS Corporate Housing Reservation', $tmp_str_message); // THIS IS THE FILE NAME TO READ FOR THE RESPONDER. CHANGE IT HERE: $filename = "responder_Tampa.txt"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); // AUTORESPONDER SEND $headers = 'From: steveo@route121.com' . "\r\n" . 'Reply-To: steveo@route121.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($_POST['form_email'],'Thank You', $contents, $headers); header('Location: corp_thank_you.php?form_email=' . $_POST['form_email']); header('Content-Location: corp_thank_you.php?form_email=' . $_POST['form_email']); header('Request-URI: corp_thank_you.php?form_email=' . $_POST['form_email']); exit; } ?>