how can mail server be implemented on localhost using php.i mean to say that how is it possible to send a mail from local client and response it from local host i.e. client and server both are on same computer.please give me the code for it in php.i am new to stackoverflow so please forgive me if my question is not upto your expectation.
Share
Your question appears to have two parts: How does one send an e-mail using PHP? and How does one receive an e-mail using PHP?
First of all, there are many ways to send an e-mail using PHP. I would recommend using the SMTP mailing method of one of the many available libraries: PEAR’s mail package is a good one (recommended in the PHP manual, actually) and I, personally, have had good experiences with SwiftMailer.
As for retrieving e-mails using PHP, this should be a good place to start researching: http://php.net/manual/en/book.imap.php. I have no experience with this part of your question, so I’m afraid I can’t be of much help.