Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/08/2008, 11:41
ErikaR
 
Fecha de Ingreso: febrero-2003
Ubicación: Buenos Aires
Mensajes: 88
Antigüedad: 21 años, 2 meses
Puntos: 0
Exclamación Envio de formulario a 2 emails

Hola,
Necesitaba saber como hago para que un formulario llegue a 2 emails diferentes, este es el codigo que estoy usando:

<?php
$textfield1=$_POST['textfield1'];
$textfield633=$_POST['textfield633'];
$textfield3=$_POST['textfield3'];
$textfield4=$_POST['textfield4'];

function limpiar($value, $check_all_patterns = true)
{
$patterns[0] = '/content-type:/';
$patterns[1] = '/to:/';
$patterns[2] = '/cc:/';
$patterns[3] = '/bcc:/';
if ($check_all_patterns)
{
$patterns[4] = '/\r/';
$patterns[5] = '/\n/';
$patterns[6] = '/%0a/';
$patterns[7] = '/%0d/';
}

return preg_replace($patterns, "", strtolower($value));
}

$ac = 1 ;
// if ( $textfield1 == '' ) { $ac = 3 ; }
// if ( $textfield3 == '' ) { $ac = 3 ; }
// if ( $textfield4 == '' ) { $ac = 3 ; }

$email = $textfield633 ;

if ( $ac != 3 ) {
// [email protected] ACA TAMBIEN LO TENGO QUE AGREGAR???
$to = "[email protected]" ; COMO AGREGO ACA UN EMAIL???

gracias
erika