Is there a way that I can configure the xampp server for PHP to enable the mail() function. If not then is there a local mail server that I can install to test the mail() feature of PHP?
On php.ini
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
;sendmail_path = "\"G:\xampp\sendmail\sendmail.exe\" -t"
; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the G:\xampp\mailoutput folder
sendmail_path="G:\xampp\mailtodisk\mailtodisk.exe"
Just uncomment the first sendmail_path and comment mailToDisk option.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.