Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/07/2006, 15:56
exist
 
Fecha de Ingreso: julio-2006
Mensajes: 45
Antigüedad: 17 años, 9 meses
Puntos: 0
prueba esto , claro con una poca corrección
$eamil ="[email protected]";

if(preg_match('/^[A-Z0-9._-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i', $email)) {

$mailmsg = "You have message in your <b>InBox</b>";

$to = $email . ', '; // note the comma

$subject = "You have new message";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: '.$email.' ' . "\r\n";
$headers .= 'From: YourSite <'.$_SERVER['HTTP_HOST'].'>' . "\r\n";


// Mail it

if (!@mail($to, $subject, $mailmsg, $headers)) {
echo "<h2 align='center'> Error sending email</h2>";
echo "<h3 align='center'> Please contact with system administration</h3>";
}
}