Foros del Web » Programando para Internet » PHP »

Funcion mail no funciona

Estas en el tema de Funcion mail no funciona en el foro de PHP en Foros del Web. Hola necesito enviar con mail() un correo para prueba con. Estoy usando wamp 5 Primero me mostraba un error de que no tenia configurado el ...
  #1 (permalink)  
Antiguo 07/09/2012, 02:40
Avatar de patilanz  
Fecha de Ingreso: enero-2012
Mensajes: 880
Antigüedad: 12 años, 10 meses
Puntos: 29
Funcion mail no funciona

Hola necesito enviar con mail() un correo para prueba con. Estoy usando wamp 5
Primero me mostraba un error de que no tenia configurado el header From de php.ini y lo corregi de modo que me quedo asi :

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [email protected]

Y la funcion mail es :

Código PHP:
Ver original
  1. $destino = '[email protected]';
  2. $asunto = 'Prueba';
  3. $mensaje = '
  4. Email:
  5. Pass:
  6. Personaje:
  7. ';
  8. mail($destino, $asunto, $mensaje, $From);
  9. echo 'a';

Uso minirelay para enviar el mensaje pero cuando intento hacer lo en el miniRelay me sale :


11:33:55 Escuchando en 127.0.0.1 (Puerto 25)
11:34:01 Comando: MAIL FROM <[email protected]>
11:34:01 Comando: RCPT TO <[email protected]>
11:34:01 [1] Dominio MX de hotmail.es cacheado
11:34:01 [1] Conectando con mx1.hotmail.com
11:34:02 [1] Enviando mensaje
11:34:02 [1] Error DY-001 (COL0-MC4-F8) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:02 [1] Conectando con mx1.hotmail.com
11:34:03 [1] Error DY-001 (COL0-MC4-F17) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:03 [1] Conectando con mx1.hotmail.com
11:34:04 [1] Error DY-001 (COL0-MC4-F10) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:04 [1] Conectando con mx2.hotmail.com
11:34:05 [1] Enviando mensaje
11:34:06 [1] Error DY-001 (COL0-MC1-F30) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.


Quito algo de aqui porque se me hace muy largo

11:34:08 [1] Error DY-001 (COL0-MC1-F32) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:08 [1] Conectando con mx3.hotmail.com
11:34:08 [1] Enviando mensaje
11:34:09 [1] Error DY-001 (BAY0-MC1-F47) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:09 [1] Conectando con mx3.hotmail.com
11:34:10 [1] Error DY-001 (BAY0-MC1-F39) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:10 [1] Conectando con mx3.hotmail.com
11:34:12 [1] Error DY-001 (BAY0-MC1-F34) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:12 [1] Conectando con mx4.hotmail.com
11:34:13 [1] Enviando mensaje
11:34:13 [1] Error DY-001 (COL0-MC3-F48) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:13 [1] Conectando con mx4.hotmail.com
11:34:14 [1] Error DY-001 (COL0-MC3-F46) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:14 [1] Conectando con mx4.hotmail.com
11:34:16 [1] Error DY-001 (COL0-MC3-F7) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:16 [1] ERROR: Se ha reintentado el envio 3 veces, devolviendo mensaje
11:34:16 [2] Devolviendo mensaje
11:34:16 [2] Dominio MX de hotmail.es cacheado
11:34:16 [2] Conectando con mx1.hotmail.com
11:34:16 [2] Enviando mensaje
11:34:17 [2] Error DY-001 (COL0-MC4-F34) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:17 [2] Conectando con mx1.hotmail.com
11:34:18 [2] Error DY-001 (COL0-MC4-F28) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:18 [2] Conectando con mx1.hotmail.com
11:34:19 [2] Error DY-001 (COL0-MC4-F45) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:19 [2] Conectando con mx2.hotmail.com
11:34:20 [2] Enviando mensaje
11:34:20 [2] Error DY-001 (COL0-MC1-F1) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:20 [2] Conectando con mx2.hotmail.com
11:34:21 [2] Error DY-001 (COL0-MC1-F4) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:21 [2] Conectando con mx2.hotmail.com
11:34:22 [2] Error DY-001 (COL0-MC1-F40) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:22 [2] Conectando con mx3.hotmail.com
11:34:23 [2] Enviando mensaje
11:34:23 [2] Error DY-001 (BAY0-MC1-F44) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:23 [2] Conectando con mx3.hotmail.com
11:34:24 [2] Error DY-001 (BAY0-MC1-F46) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:24 [2] Conectando con mx3.hotmail.com
11:34:26 [2] Error DY-001 (BAY0-MC1-F14) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:26 [2] Conectando con mx4.hotmail.com
11:34:26 [2] Enviando mensaje
11:34:27 [2] Error DY-001 (COL0-MC3-F10) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:27 [2] Conectando con mx4.hotmail.com
11:34:28 [2] Error DY-001 (COL0-MC3-F17) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:28 [2] Conectando con mx4.hotmail.com
11:34:29 [2] Error DY-001 (COL0-MC3-F28) Unfortunately, messages from 62.221.137.101 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
11:34:29 [2] El mensaje de error no ha podido ser enviado. Se queda en la cola


Y el mensaje no se envia ...
He leido varios post pero no encuentro el problema
Me pueden ayudar ??
  #2 (permalink)  
Antiguo 07/09/2012, 04:50
 
Fecha de Ingreso: mayo-2006
Mensajes: 475
Antigüedad: 18 años, 6 meses
Puntos: 58
Respuesta: Funcion mail no funciona

A mi me da que con hotmail no se puede hacer...
  #3 (permalink)  
Antiguo 07/09/2012, 05:42
Avatar de patilanz  
Fecha de Ingreso: enero-2012
Mensajes: 880
Antigüedad: 12 años, 10 meses
Puntos: 29
Respuesta: Funcion mail no funciona

Cita:
Iniciado por jossss Ver Mensaje
A mi me da que con hotmail no se puede hacer...
Gracias por tu respuesta pero entonces con que se puede hacer ??

Con gmail??
  #4 (permalink)  
Antiguo 07/09/2012, 05:48
 
Fecha de Ingreso: mayo-2006
Mensajes: 475
Antigüedad: 18 años, 6 meses
Puntos: 58
Respuesta: Funcion mail no funciona

Yo no creo que ningún servidor gratuito te lo permita hacerlo
  #5 (permalink)  
Antiguo 07/09/2012, 16:32
Avatar de patilanz  
Fecha de Ingreso: enero-2012
Mensajes: 880
Antigüedad: 12 años, 10 meses
Puntos: 29
Respuesta: Funcion mail no funciona

Cita:
Iniciado por jossss Ver Mensaje
Yo no creo que ningún servidor gratuito te lo permita hacerlo
Entonces si tengo cuenta en algun hosting que tiene servicio de email se puede?

Como por ejemplo 000webhost que me funciona con la funcion mail() pero si lo puedo enviar a mi correo hotmail pero en el localhost no ...

Etiquetas: mail(), minirelay
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 19:23.