I am designing a PHP page to send an email. An error is occurring. Please check my code carefully and let me know the error in my code.
This is the output which is generated when i run my program:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
so pls help me to set smtp configuration.