Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/04/2012, 16:07
Avatar de unreal4u
unreal4u
 
Fecha de Ingreso: octubre-2008
Mensajes: 72
Antigüedad: 15 años, 6 meses
Puntos: 10
Respuesta: Formulario PHP elegir destinatario

Primero necesitas rescatar el input y luego, lo más seguro sería hacer un switch donde estableces los valores, algo así como esto:

Código PHP:
switch($_POST['destinatario']) {
  case 
1
    
$mail '[email protected]';
    break;
  case 
2
    
$mail '[email protected]';
    break;
  
// etc...
  
default: 
    
$mail '';
    break;
}

if (!empty(
$mail)) {
  
mail($mail'blabla');

Saludos.