+ Reply to Thread
Results 1 to 3 of 3

Sending an e-mail with C# through Lotus Notes

  1. Sending an e-mail with C# through Lotus Notes

    Hi,

    I already have done this with in an excel macro. But now I'm changing
    the interface and I'm using C#.

    In the macro I was doing this to get an instance of NotesSession

    Set Session = CreateObject("Notes.NotesSession")

    I try this for the C#
    lotus.NOTESSESION session = new lotus.NOTESSESSION();
    I can't do that since the class is abstract.

    There is a function call NEW(), but how can I call it because I cannot
    do:
    lotus.NOTESSESSION session = lotus.NOTESSESSION.NEW();

    Any idea?

    Thanks

  2. Re: Sending an e-mail with C# through Lotus Notes

    Hi,

    Firstly you must add a reference to Lotus Domino Objects COM component.
    Then you can create your session as

    Domino.NotesSession session=new Domino.NotesSession();

    after that you must inititialize session

    session.Initialize("password");

    bye

    Ftardif@sorrentolactalis.com (Frank) wrote in message news:...
    > Hi,
    >
    > I already have done this with in an excel macro. But now I'm changing
    > the interface and I'm using C#.
    >
    > In the macro I was doing this to get an instance of NotesSession
    >
    > Set Session = CreateObject("Notes.NotesSession")
    >
    > I try this for the C#
    > lotus.NOTESSESION session = new lotus.NOTESSESSION();
    > I can't do that since the class is abstract.
    >
    > There is a function call NEW(), but how can I call it because I cannot
    > do:
    > lotus.NOTESSESSION session = lotus.NOTESSESSION.NEW();
    >
    > Any idea?
    >
    > Thanks


  3. Re: Sending an e-mail with C# through Lotus Notes

    hi, i've followed the same steps in order to create a NotesSession and it compiles right, but when executed i get the following exception:

    "Error al recuperar un generador de clases COM para el componente con CLSID {29131539-2EED-1069-BF5D-00DD011186B7} debido al siguiente error: 8007000e."


    and that exception is exactly trhown at "Domino.NotesSessionClass a = new Domino.NotesSessionClass();"

    have i missed somenthing? i've included the reference to Domino.dll.

    Anyone could help me please?

    Thank U anyway for reading me :)

    Charo

+ Reply to Thread