Outlook Com access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert  Rescot

    #1

    Outlook Com access

    I'm trying to develop a personal start page on my machine that would
    have my outlook calendar on the page. I've seen Konfabulator widgets
    that access the Outlook calender and a php class that I could not get
    to work for mail at



    Has anyone been able to do this with outlook 2003/winxp/apache/php?
    Willing to provide an example?

    -Robert

  • Joe Molloy

    #2
    Re: Outlook Com access

    If you're willing to use some VBscript on the page a quick way to show any
    outlook folder would be to use the outlook view control - activeX solution.

    Joe

    "Robert Rescot" <robert.rescot@ gmail.com> wrote in message
    news:1129919197 .287778.144350@ o13g2000cwo.goo glegroups.com.. .[color=blue]
    > I'm trying to develop a personal start page on my machine that would
    > have my outlook calendar on the page. I've seen Konfabulator widgets
    > that access the Outlook calender and a php class that I could not get
    > to work for mail at
    >
    > http://www.programmersheaven.com/art...ogomil/art.htm
    >
    > Has anyone been able to do this with outlook 2003/winxp/apache/php?
    > Willing to provide an example?
    >
    > -Robert
    >[/color]


    Comment

    • Robert  Rescot

      #3
      Re: Outlook Com access

      The Outlook View Control is great but it only works in IE... is there
      another solution that is cross browser compatible

      Comment

      • Steve

        #4
        Re: Outlook Com access

        [color=blue]
        > I'm trying to develop a personal start page on my machine that would
        > have my outlook calendar on the page. I've seen Konfabulator widgets[/color]


        I'm feeling generous today... I couldn't get the filter to work in the
        time available, so that's an exercise for the reader.


        <?php

        set_time_limit( 0);

        // 2005-10-25 sa [googlespam@nast ysoft.com]
        // no rights reserved, no refunds

        define( 'olFolderCalend ar', 9 );
        $objOLApp = new COM("Outlook.Ap plication") or die("Unable to
        instantiate Outlook");
        print "Outlook v" . $objOLApp->Version() . "<br><br>\n ";
        $objNameSpace = $objOLApp->GetNamespace(' MAPI');
        $objCalendarFol der = $objNameSpace->GetDefaultFold er(
        olFolderCalenda r );
        $objCalendarIte ms = $objCalendarFol der->Items();
        $objCalendarIte ms->IncludeRecurre nces = 0;
        $objCalendarIte ms->Sort( '[Start]' );

        /* OT: SADLY, THIS FAILS TO FILTER ITEMS - ANYONE KNOW WHY? */
        $objCalendarIte m = $objCalendarIte ms->Find( '[Start]>="01-Jul-2005
        12:00 AM"' );

        while( $objCalendarIte m )
        {
        $lngStartDate = $objCalendarIte m->Start();
        // manually filter - could take a long time...
        if( $lngStartDate >= mktime( 0, 0, 0, 6, 1, 2005 ) )
        {
        $strStartDate = date( 'd-M-Y', $lngStartDate );
        $strStartTime = date( 'H:i', $lngStartDate );
        $lngDuration = $objCalendarIte m->Duration() / 60;
        switch( $lngDuration )
        {
        case 0: $strTimeDuratio n = $strStartTime . " (Reminder)";
        break;
        case 24: $strTimeDuratio n = "all day"; break;
        default: $strTimeDuratio n = $strStartTime . " " . strval(
        $lngDuration ) . " hrs"; break;
        }
        $strSubject = $objCalendarIte m->Subject();
        print $strStartDate . " - " . $strTimeDuratio n . " - " .
        $strSubject . "<br>\n";
        }
        $objCalendarIte m = $objCalendarIte ms->FindNext();
        }

        unset( $objCalendarIte m );
        unset( $objCalendarIte ms );
        unset( $objCalendarFol der );
        unset( $objNameSpace );

        unset( $objOLApp );

        ?>


        ---
        Steve

        Comment

        Working...