PHP Code

Access Gmail with PHP and XML

Currently the only method to access Gmail aside from the main web interface is through POP3 access. There are some serious drawbacks, including the fact that POP access requires the downloading of each email message, and also that with Gmail, you can only access it from one POP client. There is no 'leave message on server' option, so after an email is accessed once, it disappears from the POP access server.

However, I stumbled upon a very cool PHP class that allows you to access Gmail with PHP and XML. It does this by pulling and parsing the RSS feed from your Gmail inbox. Here's a link to the PHP class.

Share

1 Comments

  1. With Gmail there is an option to leave the mail on the server. It is in your Gmail account settings under POP3. This will keep messages access via POP3 from being deleted.

    Very interesting class, I didn't realize Gmail messages had an atom feed.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image