dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Sending an e-mail with C# through Lotus Notes - lotus-notes-programmer

This is a discussion on Sending an e-mail with C# through Lotus Notes - lotus-notes-programmer ; 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 ...


Home > Database Forum > Other Technologies > lotus-notes-programmer > Sending an e-mail with C# through Lotus Notes

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 07-23-2004, 04:19 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 07-28-2004, 06:45 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default 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

Reply With Quote
  #3  
Old 10-08-2009, 11:39 AM
Database Newbie
 
Join Date: Oct 2009
Posts: 1
charo.madrigal is on a distinguished road
Default 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 With Quote
Reply

Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Today's News: Lotus Notes Mail Archiving Tips Database Administrator lotus-notes-admin 0 07-07-2004 06:37 PM
Today's News: Notes and Domino 7.0 Beta 1 Database Administrator lotus-notes-programmer 0 05-01-2004 04:07 PM
IBM Lotus Pushes Exchange to Notes Migrations Database Administrator lotus-notes-programmer 0 04-03-2004 04:42 PM
Today's News: Lotus Notes and Domino 6.5 demo Database Administrator lotus-notes-programmer 0 03-03-2004 01:51 AM
Today's News: Lotus Notes named PC Mag Editor's Choice Database Administrator lotus-notes-programmer 1 02-20-2004 03:46 PM


All times are GMT -4. The time now is 09:18 PM.