Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_POST["nombre"] && $_POST["email"] != ""){
- $de = $_POST["nombre"];
- $destino = "joanpuigbertran@hotmail.com";
- $asunto = "missatge desde agency";
- $mensaje .= "MISSATGE: " . utf8_decode($_POST["missatge"]) ."\n";
- $mensaje .= "\n";
- $mensaje .= "NOM remitent: " . utf8_decode($_POST["nombre"]) ."\n";
- $mensaje .= "\n";
- $mensaje .= "EMAIL: " . utf8_decode($_POST["email"]) ."\n";
- $emailheader = "From: estudijoanpuig <joanpuigbertran@hotmail.com>\r\n";
- mail($destino, $asunto, $mensaje, $emailheader) or die ("No ha funcionat .<br/>Prova-ho novament.");
- echo utf8_decode(utf8_encode('Missatge enviat correctament.'));
- } else {
- if($_POST["nombre"] == ""){
- echo utf8_encode ('Por favor, indica tu nombre.');
- exit; }
- if($_POST["email"] == ""){
- echo utf8_encode ('Por favor, indica un email de contacto.');
- exit; }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement