Reputation: 61
I was wondering how one would go about writing a php script to access mail from yahoo or gmail ?
Upvotes: 0
Views: 2573
Reputation: 4213
You could use the Zend Framework Zend_Mail functionality, this would allow you to connect to GMail/Yahoo/etc with POP3 or IMAP.
Upvotes: 0
Reputation: 400952
The "simplest" way would be to use IMAP to access the mails (i.e. don't try any kind of HTML scraping !). I have no idea for Yahoo, but I know you can enable IMAP in gmail.
There are several libraries in PHP that allow one to use the IMAP protocol to access a mailbox ; for instance :
Zend_Mail
.Upvotes: 4