You have to set up the link to either your webserver in windows or to your mail program in UNIX/LINUX, the one we use is sendmail.
Look for the following pieces of code in your php.ini file
[mail function]
; For Win32 only.
SMTP = 'MAILSERVER-NAME'
; For Win32 only.
sendmail_from = mail@mailname.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
and edit them as you need to
🙂