-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
24 lines (19 loc) · 740 Bytes
/
contact.php
File metadata and controls
24 lines (19 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$company = $_POST['company'];
$job = $_POST['job'];
$message = $_POST['message'];
$header = 'From: ' . $mail . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$mensaje = "Contacto desde nuestra Web Co2action " . $name . ",\r\n";
$mensaje .= "Su e-mail es: " . $email . " \r\n";
$mensaje .= "Mensaje: " . $_POST['message'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());
$para = 'fsulbaran@co2action.us';
$asunto = 'Contacto desde nuestra Web Co2action';
mail($para, $asunto, utf8_decode($message), $header);
header("Location:index.html");
?>