Foros del Web » Programando para Internet » PHP »

error mail(): "sendmail_from" not set in php.ini or custom "From:" header missing

Estas en el tema de error mail(): "sendmail_from" not set in php.ini or custom "From:" header missing en el foro de PHP en Foros del Web. tengo el codigo siguiente mail("[email protected]", "general", "hola esta es una prueba","[email protected]"); realmente no es gran cosa... pero no envia el mail. me sale el error ...
  #1 (permalink)  
Antiguo 23/06/2016, 11:18
 
Fecha de Ingreso: julio-2012
Ubicación: mexico
Mensajes: 12
Antigüedad: 11 años, 9 meses
Puntos: 1
error mail(): "sendmail_from" not set in php.ini or custom "From:" header missing

tengo el codigo siguiente

mail("[email protected]", "general", "hola esta es una prueba","[email protected]");

realmente no es gran cosa... pero no envia el mail. me sale el error
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\ltsi\pags\enviarCorreo.php on line 8

ya borre de php.ini el ; sendmail_from = [email protected]
y aun asi no funciona...
alguien me podria ayudar
  #2 (permalink)  
Antiguo 23/06/2016, 12:09
 
Fecha de Ingreso: octubre-2009
Mensajes: 305
Antigüedad: 14 años, 6 meses
Puntos: 29
Respuesta: error mail(): "sendmail_from" not set in php.ini or custom "From:" header

reinicia apache para aplicar los cambios
  #3 (permalink)  
Antiguo 23/06/2016, 12:40
 
Fecha de Ingreso: julio-2012
Ubicación: mexico
Mensajes: 12
Antigüedad: 11 años, 9 meses
Puntos: 1
Respuesta: error mail(): "sendmail_from" not set in php.ini or custom "From:" header

ya lo reinicie y no hace los cambios...
de hecho ya reinicie la compu completa y sigue pasando lo mismo

; For Win32 only.
; http://php.net/smtp
SMTP=localhost
; http://php.net/smtp-port
smtp_port=25

; For Win32 only.
; http://php.net/sendmail-from


; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =

; 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().
;mail.force_extra_parameters =

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

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =
; Log mail to syslog (Event Log on Windows).
;mail.log = syslog

Última edición por iaterck; 23/06/2016 a las 12:46

Etiquetas: custom, header, mail, missing, set
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 07:49.