Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php
  2. $para      = 'matu.arias@live.cl, arias.a.matias@gmail.com';
  3.  
  4. $name = $_POST['name'];
  5. $apel = $_POST['apel'];
  6. $fono = $_POST['fono'];
  7. $email = $_POST['email'];
  8. $ciudad = $_POST['ciudad'];
  9. $comentario = $_POST['comentario'];
  10.  
  11. $titulo = 'Mensaje';
  12. $cabeceras  = 'MIME-Version: 1.0' . "\r\n";
  13. $cabeceras = 'From: Tribus Power' . "\r\n" .
  14.     'Reply-To: matu.arias@live.cl' . "\r\n" .
  15.     'X-Mailer: PHP/' . phpversion();
  16.    
  17. $mensaje = "Nombre y apellido: " . $name . " " . $apel . " \r\n";
  18. $mensaje .= "NĀ° Telefono: " . $fono . " \r\n";
  19. $mensaje .= "Su e-mail es: " . $email . " \r\n";
  20. $mensaje .= "Ciudad: " . $ciudad . " \r\n";
  21. $mensaje .= "Detalle del comentario: " . $comentario. " \r\n";
  22. $mensaje .= "Este mensaje fue enviado el " . date('d/m/Y', time());
  23.  
  24.  
  25. mail($para, $titulo, $mensaje, $cabeceras);
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement