I just started learning PHP, and I am trying to use a script that uses the mail() command. I enabled Mercury, and when the script ran, I got this:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\XAMPP\htdocs\processfeedback.php on line 19
After searching on Google and on the forums here, I found that the "sendmail_from" variable is not set in the php.ini file to my mail server. I guess I don't understand this. I thought that Mercury was my mail server. I am just testing PHP on my own computer as Localhost, so I cannot figure out what I should set this to. I found the setting in the php.ini file, and it is commented out with a generic setting, like "email@example.com". I would like to actually send real emails from this script on my local machine if at all possible. Am I missing another program, or is there a way to alter this php.ini setting to allow emails on my local machine? All the threads I could find here dealing with this problem seemed to not for testing on Localhost. Any help is greatly appreciated.