Skip to content

Instantly share code, notes, and snippets.

@leihuagh
Created February 27, 2020 17:29
Show Gist options
  • Save leihuagh/0b72cdc0723f2aa87b2da698242a2b97 to your computer and use it in GitHub Desktop.
Save leihuagh/0b72cdc0723f2aa87b2da698242a2b97 to your computer and use it in GitHub Desktop.
PHP mail setting
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = root@localhost
; 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
; 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 = "C:\xampp\php\logs\php_mail.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment