I keep getting this error when I try to send an e-mail in PHP:
Warning: mail() [function.mail]: Failed to connect to mailserver at \"localhost\" port 25, ver
php doesn't allow or think it as very difficult to send email from localhost but this issue will be solved if you upload the project to the server. and if you want to check if email sent or not on the local server then you have to download smtp4dev and install and run it. This will give you a message if your email sent successfully or there is an issue with your code.