-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmail.php
More file actions
21 lines (16 loc) · 746 Bytes
/
mail.php
File metadata and controls
21 lines (16 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$nome = $_POST['nome'];
$email= $_POST['email'];
$telefone= $_POST['nome'];
$assunto= $_POST['assunto'];
$mensagem= $_POST['mensagem'];
$corpo ="<strong>Nome: </strong>".$nome."<br><br><strong>Email: </strong>".$email."<br><br><strong>Telefone: </strong>".$telefone."<br><br><strong>Mensagem: <br><br></strong>".$mensagem."";
$headers = "Content-Type:text/html; charset=UTF-8\n";
$headers .= "From: interagejr.com.br\n";
$headers .= "X-Sender: \n";
$headers .= "X-Mailer: PHP v".phpversion()."\n";
$headers .= "X-IP: ".$_SERVER['REMOTE_ADDR']."\n";
$headers .= "Return-Path: \n";
$headers .= "MIME-Version: 1.0\n";
mail('einteragejr@gmail.com', $assunto, $corpo, $headers); //função que faz o envio do email.
?>