Skip to content

Commit 1ed654d

Browse files
committed
Novos projetos desenvolvidos no Inteliogia
1 parent 8ca5308 commit 1ed654d

File tree

50 files changed

+413
-832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+413
-832
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
$nome = addslashes($_POST['nome']);
4+
$email = addslashes($_POST['email']);
5+
$telefone = addslashes($_POST['telefone']);
6+
7+
$para = "[email protected]";
8+
$assunto = "Coleta de dados - Inteliogia";
9+
10+
$corpo = "Nome: ".$nome."\n"."E-mail: ".$email."\n"."Telefone: ".$telefone;
11+
12+
$cabeca = "From: [email protected]"."\n"."Reply-to: ".$email."\n"."X=Mailer:PHP/".phpversion();
13+
14+
if(mail($para,$assunto,$corpo,$cabeca)){
15+
echo("E-mail enviado com sucesso!");
16+
}else{
17+
echo("Houve um erro ao enviar o email!");
18+
}
19+
20+
?>
File renamed without changes.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<body>
1111
<section class="form-container">
1212
<div class="container">
13-
<!-- PRIMEIRO PASSO: ADICIONAR O MÉTODO E A AÇÃO. DEPOIS O NOME DOS INPUT -->
1413
<form method="post" action="envia.php">
1514
<h1>Entre em contato</h1>
1615
<p>Preencha o formulário abaixo e entraremos em contato com você</p>

0 commit comments

Comments
 (0)