Re: Send mail via Outlook from Oracle's forms

From: A. Bogomol <bogomol_at_investbank.ru>
Date: Thu, 15 Mar 2001 08:50:43 +0200
Message-ID: <9455EAF0C99FD111B85B0060B067688A04DD84FF_at_E40>


[Quoted] I tried to do it using OLE2 package methods. some example :

      hndApp:=OLE2.CREATE_OBJ('Outlook.Application');
      args:=OLE2.CREATE_ARGLIST;
      OLE2.ADD_ARG(args,'MAPI');
      MapiSession:=OLE2.INVOKE_OBJ(hndApp,'GetNameSpace',args);
      OLE2.DESTROY_ARGLIST(args);

      args:=OLE2.CREATE_ARGLIST;
      OLE2.ADD_ARG(args,'UserName');
      OLE2.ADD_ARG(args,'PassWord');
      OLE2.ADD_ARG(args,0);
      OLE2.ADD_ARG(args,0);
      OLE2.INVOKE(MapiSession,'Logon',args);
      OLE2.DESTROY_ARGLIST(args);

      args:=OLE2.CREATE_ARGLIST;
      OLE2.ADD_ARG(args,0);
      hndMail:=OLE2.INVOKE_OBJ(hndApp,'CreateItem',args);
      OLE2.DESTROY_ARGLIST(args);
      OLE2.Set_Property(hndMail,'to','_at_mail');
      OLE2.Set_Property(hndMail,'subject','Test');
      OLE2.Set_Property(hndMail,'body','Test125478');
      temp:=OLE2.INVOKE_OBJ(hndMail,'send');
      ...
      ...

Hope,it helps.

sly ÐÉÛÅÔ × ÓÏÏÂÝÅÎÉÉ <98o4gm$ijv$1_at_reader1.imaginet.fr> ...
>Hi !
>
>I already have subject and message in forms and I would like to know how
>send mails from Oracle Forms via Outlook
>
>Thanks
>
>
>
>
Received on Thu Mar 15 2001 - 07:50:43 CET

Original text of this message