Hi,
I am using the following code to send a message using the COM Interface.
Session := CreateComObject(CLASS_NotesSession) as ISession; Session.Initialize(‘’);
Database := Session.GetDatabase(XXXXX,XXXXX,False);
Document := Database.CreateDocument;
Document.AppendItemValue(‘From’,‘Hello’);
Document.AppendItemValue(‘Subject’,‘Test’);
Document.AppendItemValue(‘Body’,‘OK’);
Document.Set_SaveMessageOnSend(True);
SendTo := ‘XXXX@tropical.com’;
Document.Send(chkSendForm.Checked,SendTo);
If I run this code from a PC with Lotus Notes Client the email gets saved in the sent folder, the TO item gets set and the email goes out.
If I run this code from a Server with Domino the email gets saved in the sent folder, but the TO item is not set and the email doesn’t goes out. Can someone tell me what’s going on?
Please help,
Claudio Taboada.