listInfos(); if( PATH_SEPARATOR ==';'){ $quebra_linha="\r\n"; } elseif (PATH_SEPARATOR==':'){ $quebra_linha="\n"; } elseif ( PATH_SEPARATOR!=';' and PATH_SEPARATOR!=':' ) { echo ('Esse script não funcionará corretamente neste servidor, a função PATH_SEPARATOR não retornou o parâmetro esperado.'); } $email_from='reuter@reuter.com.br'; $nome = trim(addslashes(($_POST['txt_name']))); $email = trim(addslashes(($_POST['txt_email']))); $telefone = trim(addslashes(($_POST['txt_telefone']))); $mensagem1 = trim(addslashes(($_POST["txt_message"]))); $assunto1 = trim(addslashes(($_POST["txt_assunto"]))); $palavra = trim((addslashes($_POST['palavra']))); if($assunto1 != NULL or $assunto1 != "") { $_SESSION["nome"] = $nome; $_SESSION["email"] = $email; $_SESSION["assunto"] = $assunto1; $_SESSION["txt"] = $mensagem1; $_SESSION["telefone"] = $telefone; if(($palavra == $_SESSION["palavra"])) { $assunto = "Contato pelo site - Reuter | ".$assunto1.""; $texto = ""; $texto.="Nome: ".$nome."". $quebra_linha ."
"; $texto.="Email: ".$email."". $quebra_linha ."
"; $texto.="Telefone: ".$telefone."". $quebra_linha ."
"; $texto.="Assunto: ".$assunto."". $quebra_linha ."
"; $texto.=" Mensagem: ".$mensagem1."". $quebra_linha ."
"; $mensagem = $texto; $to="reuter@reuter.com.br"; $nome_para = $nome; $mensagem = wordwrap( $mensagem, 50, "
", 1); $boundary = "XYZ-" . date("dmYis") . "-ZYX"; $mens = "--$boundary" . $quebra_linha . ""; $mens.= "Content-Transfer-Encoding: 8bits" . $quebra_linha . ""; $mens.= "Content-Type: text/html; charset=\"utf-8\"" . $quebra_linha . "" . $quebra_linha . ""; //plain $mens.= "$mensagem" . $quebra_linha . ""; $headers = "MIME-Version: 1.0" . $quebra_linha . ""; $headers .= "From: $email_from " . $quebra_linha . ""; $headers .= "Return-Path: $email_from " . $quebra_linha . ""; $headers .= "Bcc: mnmk.lvseg@gmail.com" . $quebra_linha . ""; $headers .= "Content-type: multipart/mixed; boundary=\"$boundary\"" . $quebra_linha . ""; $headers .= "$boundary" . $quebra_linha . ""; unset($_SESSION["nome"]); unset($_SESSION["email"]); unset($_SESSION["telefone"]); unset($_SESSION["assunto"]); unset($_SESSION["txt"]); unset($_SESSION["palavra"]); if(mail($to,$assunto,$mens,$headers)){ echo ""; } } else { unset($_SESSION["palavra"]); echo ""; } } include_once("sk_contato.html"); ?>