|
FALE CONOSCO
|
$nome = $_POST["nome"];
$email = $_POST["email"];
$tel1 = $_POST["tel1"];
$tel2 = $_POST["tel2"];
$mensagem = $_POST["mensagem"];
$para = "contato@mercon.com.br";
$headers = "Content-Type: text/plain; charset=iso-8859-1\n";
$headers.= "From: fale_conosco \n";
$headers .= "Return-Path: contato@merconengenharia.com.br\n"; // return-path
$subject = " FORMULARIO DE CONTATO WEB SITE";
$msg = "Formulário de contato Mercon Engenharia
Data do ENVIO: ".date("d/m/y h:i",$mktime)."\n";
$msg .= "Nome: $nome\n";
$msg .= "Email: $email\n";
$msg .= "Telefone: $tel1 - $tel2\n";
$msg .= "Mensagem: $mensagem\n";
$msg .= "\n\nEste email foi remetido do sistema de Formulario do Web Site Grupo Max \n";
#################################################################################################
#### Envia valores acima por email ##############################################################
if ($nome) {
mail($para,$subject,$msg,$headers);
$msg1 = "
Email Enviado com Sucesso! ";
}
################################################################################################
?>
echo $msg1;
?>
// se não tiver clicado em enviar mostra o formulário
if (!isset($Submit)) { ?>
} ?>