Descargar sendmail exe para enviar correos en Apache / XAMPP desde PHP

By | 10/01/2017

Sendmail.exe es una sencilla aplicación de consola de Windows que emula la opción «-t» de sendmail para enviar mensajes de correo electrónico a través de stdin.

Es usado como un medio de entrega de correo electrónico.

No admite entrega diferida y requiere un servidor smtp para realizar la entrega real de los mensajes.

instalación

  • descarga sendmail.zip y descomprime sus ficheros
  • copiar sendmail.exesendmail.ini en la carpeta C:\xampp\sendmail\
  • configurar  smtp server y dominio por defecto en el fichero sendmail.ini
  • configurar php.ini de Apache para que envíe los correos usando Sendmail:

[mail function]
; 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
;sendmail_from = [email protected]

; For Unix only. You may supply arguments as well (default: «sendmail -t -i»).
; http://php.net/sendmail-path
sendmail_path = «\»C:\xampp\sendmail\sendmail.exe\» -t»

; 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=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»

(Visited 357 times, 1 visits today)