How To Access Gmail With PHP

Rate this:
By Mike (Contact - View My Woyano)
Published Tue 13 Feb 2007, 6177 Views, 8 Comments

Introduction
libgmailer (class GMailer) is a PHP library that allow you to write PHP program to access Google’s free webmail service Gmail.

Basically, GMailer connects to the Gmail website and does the data retrival for you. It uses the CURL extension of PHP to handle the HTTP/HTTPS traffic.

It is a functional library in PHP. It alone does not do anything. You are supposed to write a Gmail-related web applications, for example, gmail-lite and gmail-mobile, with it.

Functions
Mail management: read, compose, save draft, send, apply labels, remove labels, apply star, remove star, download attachment, search, etc.
Account management: edit filters, edit contact list, edit label list, edit Gmail perferences, etc.

Features
Database-like accessing methods.
SSL secured transmission.

Requirements
GMailer requires the CURL PHP extension to handle the HTTP/HTTPS traffic. And because GMailer always connects to Gmail via SSL, you may also need OpenSSL for CURL to talk SSL. Details can be found inthe CURL homepage.

Website Address: http://gmail-lite.sourceforge.net/wordpress/index.php/about/libgmailer/



This Item
Category: Knowledge, How to's, General
Tags: Gmail, PHP, API
Share it
Link to this item:
Bookmark this item: RSS Feed

People who liked this item

    8 Comments

  1.  
    Big Al ~ 15 months ago
    1 vote thumbs up thumbs down
    Aweeeesooooome. I think I might steal this... *yoink*
    [ reply ]
    1.  
      jake ~ 15 months ago
      1 vote thumbs up thumbs down
      Surely one problem with things like this is if its not an official Google-supported method, then they may change the API at any point, making such code useless. No?
      [ reply ]
      1.  
        will ~ 15 months ago
        1 vote thumbs up thumbs down
        Thats way to cool- Will be looking into this! Cheers!
        [ reply ]
        1.  
          Mike ~ 15 months ago
          0 votes thumbs up thumbs down
          Jake: Yeah, apparently google are going to release an official API at some point, but for now I guess we'll just have to keep updated with the latest libgmailer class from these guys!
          [ reply ]
          1.  
            JV ~ 15 months ago
            0 votes thumbs up thumbs down
            Is there one that can login to your adsense... we could use something like that to get real adsense earnings for users on woyano
            [ reply ]
            1.  
              Mike ~ 14 months ago
              1 vote thumbs up thumbs down
              There's the Adsense API with PHP sample code...

              Code: http://code.google.com/ap..._samples.html#php_section

              More reading here: http://code.google.com/ap...l#adsense_api_intro_using
              [ reply ]
              1.  
                JV ~ 15 months ago
                0 votes thumbs up thumbs down
                Ohhhh noooo.

                Now we have to do the work ;)
                [ reply ]
            2.  
              BenTremblay ~ 3 months ago
              0 votes thumbs up thumbs down
              Mike - I should be able to tag this internally ... and when that sorta thing ain't happening (I just got rousted by Login yet.again) then ... "read only web"?

              That sorta thing.
              cheers

              p.s. heh had .MM reader pluged in and it spun wi/o a glitch in a resource-hungry environment.
              :-)
              [ reply ]
              1.  
                22 votes thumbs up thumbs down
                This is my two cents...

                   
                Hey you know AdGuy always gets the last word! ;)

              Please Login to Add Your Comment   ..or..  

              Replying to comment by