Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving e-mail

Status
Not open for further replies.

zyrag

IS-IT--Management
Dec 4, 2002
252
PH
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?

thanks,
 
you need to have some kind of pop server you can log into.. Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
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: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top