Announcement

Collapse
No announcement yet.

Delphi 5 / Outlook 2007

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delphi 5 / Outlook 2007

    Hallo zusammen,

    ich nutze D5 + Outlook8.pas und sende mit unten stehenden Code Mails über Outlook. Das klappt auch sehr gut . Probleme gibt es aber mit Outlook 2007 . Hier kommt immer die Meldung: "Klasse nicht registriert"

    Hat jemand eine Idee oder einen Tipp

    Vielen Dank...

    procedure sendOutLool97Mail1(an,sub,text,fn: string);
    var aOutlook: TOutlookApplication;
    aMapi: NameSpace;
    aOutBOx: mapiFolder;
    aMail: mailItem;
    aReci: Recipient;
    myIns: Inspector;
    body: widestring;
    begin

    aOutlook :=TOutlookApplication.Create(nil);
    aMapi :=aOutlook.GetNamespace('MAPI');
    aOutBox :=aMapi.GetDefaultFolder(olFolderOutBOx);
    aMail :=aOutBox.items.add(olMailItem) as MailItem;
    aMail.Attachments.Add(fn, olByValue, 1, 'Attachment');
    aMail.Subject:=sub;
    aMail.Display(olFolderDisplayNormal);
    aOutlook:=nil;

    end;

  • #2
    An welcher Quellzeile?

    Ich würde eh für dieses einfache Senden über MAPI gehen und nicht direkt Outlook ansprechen.

    Comment


    • #3
      Mapi

      Hallo....


      leider öffnet ein Aufruf über MAPI das Outlook Fenster Modal.
      Genau das darf aber nicht passieren.

      Ein MAPI übder MAPI geht.... hilft mir aber leider nicht weiter

      Comment

      Working...
      X