Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2007, 18:47
jesus.jes
 
Fecha de Ingreso: marzo-2007
Mensajes: 15
Antigüedad: 17 años, 1 mes
Puntos: 0
De acuerdo Configuracion del PHP.INI

Hola como le hago para configurar mi php.ini, ya que manda el siguiente error al intentar enviar el correo.

Ha ocurrido un error de envio..... PHP Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] in C:\Inetpub\wwwroot\correo\enviar.php on line 12

...............que le tengo q mover al php.ini, gracias por su ayuda, mi codigo es este


<?php
$to = "[email protected]";
$from = "[email protected]";
$subject = "hola";
$message = "xxxxxxx";
$headers = "De: " . $from . "rn" ;
$mailsend = mail ($to, $subject, $message, $headers);
if ($mailsend) {
echo "El correo ha sido enviado correctamente: <br><br>" ;
echo "<b>Para:</b> $to<br>";
echo "<b>De:</b> $from<br>";
echo "<b>Asunto:</b> $subject<br>";
echo "<b>Consulta:</b><br>";
echo $message;
} else {
echo "Ha ocurrido un error de envio.....";
}
?>