Forum Moderators: coopster
PHP has a mail function but it requires a mail program. When running on Windows, PHP uses the SMTP server you specify in your
php.ini file. Find the SMTP directive in your php.ini and it probably says localhost. If you are running an SMTP server on your machine, then localhost should work. If you are not running an SMTP server on your machine, you have two choices that I am aware of. If anyone has other options, please join in! You can use another mail server, depending on how your computer is connecting to the Internet. I get an IP address and DNS servers from my ISP. Therefore, when I put
mail.myisp.net in the SMTP directive, PHP will use that mail server when executing mail functions. Windows does have an SMTP server, but it is not installed by default. You have to go to your Control Panel -- Add or Remove Programs -- Add/Remove Windows Components -- Internet Information Services and click the Details... button. In there you are going to find the SMTP Service. Like any other service, once it is installed you can configure it to start automatically, manually, etc.
I don't know of any tutorials, never searched for one...but maybe this will help you make sense of the issue.