Foros del Web » Programando para Internet » PHP »

error 501 warning:mail()

Estas en el tema de error 501 warning:mail() en el foro de PHP en Foros del Web. Buenas necesito ayuda..me sale este error en el formulario php: Warning: mail() [function.mail]: SMTP server response: 501 Your domain does not seem to be valid. ...
  #1 (permalink)  
Antiguo 11/09/2007, 12:29
bon
 
Fecha de Ingreso: septiembre-2007
Mensajes: 6
Antigüedad: 16 años, 7 meses
Puntos: 0
error 501 warning:mail()

Buenas necesito ayuda..me sale este error en el formulario php:

Warning: mail() [function.mail]: SMTP server response: 501 Your domain does not seem to be valid. Could not find MX record for your domain. in c:\domains\losurbano.com\wwwroot\enviar.php on line 114


Gracias.
  #2 (permalink)  
Antiguo 11/09/2007, 13:15
Avatar de mauled  
Fecha de Ingreso: marzo-2005
Ubicación: Cd. de México.
Mensajes: 3.001
Antigüedad: 19 años, 1 mes
Puntos: 33
Re: error 501 warning:mail()

Tome este respuesta de esta pagina http://uk.php.net/manual/es/ref.mail.php#59752

Cita:
I spent hours searching the web trying to figure out why I was getting a "WARNING: mail(): SMTP server response: 501 5.5.4 Invalid Address " every time I was using the mail() function on my server (Win2K3,IIS 6.0,PHP4.4.1). I knew everything was setup properly for SMTP based on other non IIS 6.0 configurations.

Turns out that the IIS 6.0 SMTP service does not like formatting of the "From" field in mail headers. For instance:
<?PHP
//This line DOES NOT send mail message correctly
$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
?>
However this works:
<?PHP
//This line sends mail message correctly
$headers .= "From: \"".$fromaddress."\"\n";
?>

The fix is in Microsoft Article ID 291828 ( http://support.microsoft.com/?id=291828 ). Even though the "bug" workaround is for IIS 6.0 on Exchange 2003 communicating with a UNIX server, THIS SOLVES THE PROBLEM. Just skip down to the last section for Exchange 2003 and follow the instructions to modify the IIS 6 MetaBase with the MetaBase Explorer found in the IIS 6 Resource Kit.
Saludillos,
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:39.