Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/02/2008, 09:11
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Agregar funcion a boton

En el botón de tu formulario, creas un tag <form>, en el action del <form> lo pones a un script PHP donde pones ese código, algo así:
Código HTML:
<form action="archivo.php">
       <input type="submit" name="enviar" value="Enviar Mail" />
</form> 
Luego en tu archivo:
Código PHP:
<?php

$mail 
$smtp->send($to$headers$body);
?>
Saludos.