"; } if (!empty($error)) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha_code", "recaptcha_challenge_field", "recaptcha_response_field", "g-recaptcha-response"); $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; $logdata = ''; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (!is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; } } } $body = 'This is a multi-part message in MIME format.'.$eol.$eol; $body .= '--'.$boundary.$eol; $body .= 'Content-Type: text/plain; charset=ISO-8859-1'.$eol; $body .= 'Content-Transfer-Encoding: 8bit'.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; if ($mailto != '') { mail($mailto, $subject, $body, $header); } header('Location: '.$success_url); exit; } ?> CNC MECANIZADOS S.A.S
CONTÁCTENOS
CNC MECANIZADOS S.A.S,
Cll 45 # 1E - 82 Barrio Manzanares Cali - Colombia,
Tel
éfonos: (57- 2) 443 3621 - (57- 2) 443 1099,
Cel: 316 877 7726 - 316 877 7739
cncmecali@gmail.com - cncmecanizadoscol@hotmail.com
EMAIL:
TELÉFONO:
ASUNTO
COMENTARIO:
NOMBRES Y APELLIDOS:
CNC MECANIZADOS S.A.S,
Cll 45 # 1E - 82 Barrio Manzanares Cali - Colombia,
Teléfonos: (57- 2) 443 3621 - (57- 2) 443 1099, Cel: 316 877 7726 - 316 877 7739,
cncmecali@gmail.com - cncmecanizadoscol@hotmail.com