per PHP und COM zu Outlook

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • per PHP und COM zu Outlook

    Hey,
    ich versuch gerade per PHP und COM auf Outlook zu kommen und dort in den Kalendar einen Eintrag zu speichern! Derzeit noch bei mir lokal, später soll das dann beim Exchannge-Server arbeiten!
    Hier mal der Code dazu:


    PHP-Code:
    <?php

    define 
    ("SUBJECT_MATTER""Urlaub");
    define ("START_TIME""12/4/2003 1:00:00AM");
    define ("END_TIME""1/12/2004 1:00:00AM");
    define ("BODY_TEXT""Ulaub");

    $objApp = new COM("Outlook.Application");
    $newItem $objApp->CreateItem(olAppointmentItem);

    $newItem->Subject SUBJECT_MATTER;
    $newItem->Start START_TIME;
    $newItem->End END_TIME;
    $newItem->BusyStatus olOutOfOffice;
    $newItem->Body BODY_TEXT;
    $newItem->Save();
    $newItem->Display();

    ?>

    Leider bekomm ich die Fehlermeldung:

    Warning: (null)(): Unable to obtain IDispatch interface for CLSID {0006F03A-0000-0000-C000-000000000046}: Starten des Servers fehlgeschlagen in c:\programme\apache group\apache\htdocs\com\commail.php on line 8

    Fatal error: Maximum execution time of 30 seconds exceeded in c:\programme\apache group\apache\htdocs\com\commail.php on line 8
    Ich werd da nicht schlau draus!

    lg
    Flow

  • #2
    hilft dir das evtl.?
    http://www.programmersheaven.com/art...ogomil/art.htm
    ... und besucht mal den ebay(TM)-browser überhaupt: Lauge
    und damit das Fragen nen Ende hat: Der Progger davon sitzt mir gegenüber !

    Kommentar


    • #3
      Ich werd es mir mal anschauen, danke für den Link!

      lg
      Flow

      Kommentar


      • #4
        Welche Outlook version hast Du?

        Das Prob liegt wohl hier (Zeile 8) ->
        PHP-Code:
        $objApp = new COM("Outlook.Application"); 
        _____________
        Ist das so? Scheinbar muss das so?! Oder ist es vielleicht viel leichter...
        [color=red]Auch ich beantworte keine mails bei php problemen! Für das gibts ja das Forum!![/color]

        Kommentar


        • #5
          Outlook 2000, wieso??

          Kommentar


          • #6
            Weil....

            Hinweis:
            Alle Verfahren benötigen die korrekte Angabe des Klassennamens der COM-Komponente. Die Gebräuchlichsten werden hier aufgelistet:

            Office-Komponente
            Access.Application.8 ' MS Access '97
            Access.Application.9 ' MS Access 2000
            Access.Application.10 ' MS Access XP
            Word.Application.8 ' MS Word '97
            Word.Application.9 ' MS Word 2000
            Word.Application.10 ' MS Word XP
            Excel.Application.8 ' MS Excel '97
            Excel.Application.9 ' MS Excel 2000
            Excel.Application.10 ' MS Excel XP
            Powerpoint.Application.8 ' u.s.w.
            Outlook.Application.8 ' u.s.w.


            Ist jedenfalls bei VB so.....
            _____________
            Ist das so? Scheinbar muss das so?! Oder ist es vielleicht viel leichter...
            [color=red]Auch ich beantworte keine mails bei php problemen! Für das gibts ja das Forum!![/color]

            Kommentar


            • #7
              Das wars auch nicht! Gleicher Fehler wie vorhin!

              Kommentar


              • #8
                Sonst hab ich nur das gefunden...

                10.9.7 What does 'Unable to obtain IDispatch interface for CLSID {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' mean ?

                This error can have multiple reasons:

                the CLSID is wrong
                the requested DLL is missing
                the requested component doesn't implement the IDispatch interface
                _____________
                Ist das so? Scheinbar muss das so?! Oder ist es vielleicht viel leichter...
                [color=red]Auch ich beantworte keine mails bei php problemen! Für das gibts ja das Forum!![/color]

                Kommentar


                • #9
                  Das hab ich auch schon gefunden, leider nicht sehr aufschlussreich!

                  Kommentar


                  • #10
                    Hast Du den Registrierungs-Schlüssel in deiner Registry?

                    0006F03A-0000-0000-C000-000000000046

                    Ist er Outlook zugeordnet?
                    _____________
                    Ist das so? Scheinbar muss das so?! Oder ist es vielleicht viel leichter...
                    [color=red]Auch ich beantworte keine mails bei php problemen! Für das gibts ja das Forum!![/color]

                    Kommentar


                    • #11
                      Letzter vorschlag von mir

                      I have run the program DCOMCNFG.EXE and have changed the following permissions for the Microsoft Document object from their default settings:
                      - Custom Access Permissions: “Allow” the “IUSR_<servername>” user access to the object.
                      - The user account to run the application: “The interactive user”
                      _____________
                      Ist das so? Scheinbar muss das so?! Oder ist es vielleicht viel leichter...
                      [color=red]Auch ich beantworte keine mails bei php problemen! Für das gibts ja das Forum!![/color]

                      Kommentar


                      • #12
                        Ja der Schlüssel ist vorhanden, Ja er ist auch Outlook zugeordnet!

                        Edit: Ups, das zweite Posting hab ich nicht gesehen! Danke, ich werd es nachher gleich ausprobieren!

                        lg
                        Flow
                        Zuletzt geändert von Flow09; 02.12.2003, 07:36.

                        Kommentar

                        Lädt...
                        X