Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 20th, 2012  |  syntax: PHP  |  size: 0.88 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5. <head>
  6.  
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />
  8.  
  9. <title></title>
  10.  
  11. </head>
  12.  
  13. <body>
  14.  
  15. <?php
  16.  
  17. function form_mail($sPara, $sAsunto, $sTexto, $sDe)
  18.  
  19. {
  20.  
  21. $bHayFicheros = 0;
  22.  
  23. $sCabeceraTexto = "";
  24.  
  25. $sAdjuntos = "";
  26.  
  27. if ($sDe)$sCabeceras = "From:".$sDe."\n";
  28.  
  29. else $sCabeceras = "";
  30.  
  31. $sCabeceras .= "MIME-version: 1.0\n";
  32.  
  33. return(mail($sPara, $sAsunto, $sTexto, $sCabeceras));
  34.  
  35. }
  36.  
  37. //cambiar aqui el email
  38.  
  39. if (form_mail("sergio.am90@gmail.com", "Formulario contacto El Mago de la Empanada",
  40.  
  41. "Los datos introducidos en el formulario son:\n\n", "sergio.am90@gmail.com"))
  42.  
  43. header("Location: http://ilcipolla.com.ar/index.html");
  44. exit;
  45. ?>
  46.  
  47. </body>
  48.  
  49. </html>