Guest User

Untitled

a guest
May 20th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?PHP
  2. $archivo = fopen("formulario.csv" , "w");
  3. if ($archivo) {
  4.  
  5. $datos="Nombre del autor: $nom
  6. + Su email:,$email
  7. + Su empresa:,$empresa
  8. + Motivo del contacto:,$contacto
  9. + Mensaje:,$mensaje";
  10. fputs ($archivo, $datos);
  11. }
  12. echo $pulsado;
  13. fclose ($archivo);
  14. ?>
  15.  
  16. <?php
  17. include "libmail.php";
  18. $m= new Mail;
  19. $m->From( "soryuchan@gmail.com" );
  20. $m->To( "soryuchan@gmail.com" );
  21. $m->Subject( "$email" );
  22. $m->Body( "Nombre del autor:
  23. $nom
  24. Su email:
  25. $email
  26. Su empresa:
  27. $empresa
  28. Motivo del contacto:
  29. $contacto
  30. Mensaje:
  31. $mensaje" );
  32.  
  33. $m->Priority(1) ;
  34. $m->Attach( "formulario.csv", "application/vnd.ms-excel", "attachment" );
  35. $m->Send();
  36. ?>
Add Comment
Please, Sign In to add comment