Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Email via Lotus Notes from VFP 6
Message
From
21/05/2004 13:07:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Sending Email via Lotus Notes from VFP 6
Miscellaneous
Thread ID:
00906066
Message ID:
00906066
Views:
70
Greetings all. Been a while since I've been here due to job change and relocation. I need some help with an old problem.

I used to use the following code to send a Lotus Notes E-mail message from within VFP 6. My workstation at the time was Windows 98 and I believe the same code worked properly from a Windows 2000 machine. We had Notes 4.6
loNotes = CreateObject("Lotus.Notessession")
loNotes.initialize("myPassword")
loDBDir = loNotes.GetDBDirectory("")
loDb = loDBDir.OpenMailDatabase()
loDoc = loDb.CreateDocument

lcSubject = "Test Message"
lcBody = "Body of Test Message"
lcRecipient = "Recipient"

loDoc.ReplaceItemValue("Subject", lcSubject)
loDoc.ReplaceItemValue("Body", lcBody)
loDoc.ReplaceItemValue("SendTo", lcRecipient)
loDoc.Send(.F.)
I now have a Windows NT machine and Notes 6.

When I run the code the first line blows up with
Class definition LOTUS.NOTESSESSION not found
NOTES.NOTESSESSION
seems to be something that I might be able to use. But the object model for that seems quite different and I haven't been able to log in properly and open the mail database.

I've posed the same question to our internal help people (they won't know anything about VFP but they may be able to provide some VB code I could use) but
SET SHAMELESS PANDERING ON
This group has always been more informative and much faster to respond

Any all all help will be welcome.
Next
Reply
Map
View

Click here to load this message in the networking platform