in linux, we can read mails by loging into the system or by simply typing 'mail' in the shell prompt.
In PHP, we send mails by using the "mail()" function. but, how do we retrieve and read mails using PHP?
According to the online manual, you can use PHP's IMAP family of functions to access POP3. But those functions need to be compiled into PHP.
You can use fsockopen() to connect to port 110 on the POP3 server and issue the command necessary to login and retrieve the mail. But a lot of ISPs turn this feature off. Want the best answers? Ask the best questions:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.