I've installed Apache and PHP on my small Home windows 7 PC. I learning the PHP now. Following is my PHP script to transmit email.

        $email = $_REQUEST['email'];
        $subject = $_REQUEST['subject'];
        $message = $_REQUEST['message'];
        echo "Thank you for using the email !!!";
        echo "Mail is not set properly. Please fill the form properly";

I'm utilizing a html form to obtain the needed parameters for delivering email. Following may be the error I get as i send the e-mail.

Warning: mail() [function.mail]: Unsuccessful for connecting to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" establishing php.ini or use ini_set() in C:WebLearnApache-2.2htdocsSimpleWebsitecontact.php online 7

Should i set almost anything to occur php.ini file or perhaps in httpd.conf? If so how you can configure it? Will I need one more SMTP server on my small PC to transmit email? Please suggest the steps needed to transmit an e-mail from the local PC.

The content says it's attempting to provide the email to localhost:25, and there is nothing listening there.

PHP cannot email "the webInch directly. The content have to go to a mail server program for example Postfix or Sendmail or SSMTP, which in turn relays it towards the appropriate destination.

You have to install and configure a mail server program and hang PHP for doing things via php.ini. In my opinion you might also need a choice of setting up PHP to utilize a Sendmail binary rather than SMTP delivery.