Foros del Web » Administración de Sistemas » Software para Servers »

No consiguo enviar correos con mail()

Estas en el tema de No consiguo enviar correos con mail() en el foro de Software para Servers en Foros del Web. Hola a tod@s, llevo un tiempo peleándome con mi Xampp para poder mandar correos con la función de php mail() y no lo consigo, tengo ...
  #1 (permalink)  
Antiguo 21/07/2012, 20:09
 
Fecha de Ingreso: julio-2012
Mensajes: 2
Antigüedad: 11 años, 9 meses
Puntos: 0
No consiguo enviar correos con mail()

Hola a tod@s, llevo un tiempo peleándome con mi Xampp para poder mandar correos con la función de php mail() y no lo consigo, tengo configurado el mercury y envio correos perfectamente, pero cuando intento crear una pagina en blanco con la función mail() no consigo que lleguen y tampoco da error alguno, ni en la pantalla ni en los logs.

La configuración esta para enviar correos con el smtp de google y me he leído tantas cosas por internet que me he vuelto loco, por que cada uno dice una cosa distinta.

El xampp esta recien instalado en la ultima versión que hay y lo único que he tocado es la linea del php.ini para dejarla asi:

;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"

Os dejo como esta el php.ini en la sección de mail function:

[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
SMTP = localhost
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = postmaster@localhost

; XAMPP IMPORTANT NOTE (1): If XAMPP is installed in a base directory with spaces (e.g. c:\program filesC:\xampp) fakemail and mailtodisk do not work correctly.
; XAMPP IMPORTANT NOTE (2): In this case please copy the sendmail or mailtodisk folder in your root folder (e.g. C:\sendmail) and use this for sendmail_path.

; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"

; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the C:\xampp\mailoutput folder
sendmail_path = "C:\xampp\mailtodisk\mailtodisk.exe"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
mail.log = "C:\xampp\php\logs\php_mail.log"

Si a alguien le paso lo mismo y lo resolvió espero que me de algo de luz en esto.
  #2 (permalink)  
Antiguo 25/08/2014, 04:10
 
Fecha de Ingreso: octubre-2013
Mensajes: 5
Antigüedad: 10 años, 5 meses
Puntos: 0
Respuesta: No consiguo enviar correos con mail()

Estoy con el mismo problema.
Puedo enviar correos con el mercury y llegan bien, pero si los envios con la funcion mail() el correo se envia pero no llega.
¿alguien sabe que puede ser?

Gracias.

Etiquetas: correos, ip, php, server
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 12:16.