I am fairly new to PHP so if anyone is a noob its me. My situation regards to the use of the mail() function. I have been looking around and have not found an answer so hopefully I can find one here.
I am using Windows, developing the site and testing it locally on IIS. The name of my computer is msi.
I am not able to get the mail() function to work and its making me nuts. There are 2 php.ini file, one in C:/Windows and other other is in some php folder. The one in C:/Windows is being used by php so i am configuring that file.
looking at php.ini I am here:
SMTP = localhost
smtp_port = 25
sendmail_from= me@localhost.com
What must I change to make this work?
In the function mail($to, $subject, $body, $header), is $header the same thing as the 'sendmail_from'? So if I set a value for $header in the script, then should I comment out sendmail_from? are the 2 associated with each other?
Now if I send this mail out, where is the mail sending from? is it actually sending from the SMTP mail server on IIS?