0

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?

Chirag Nagpal
  • 729
  • 10
  • 25
  • possible duplicate of [How to configure XAMPP to send mail from localhost?](http://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost) – kero Nov 09 '13 at 11:44

1 Answers1

0

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.

nikoskip
  • 1,860
  • 1
  • 21
  • 38