Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Email via Lotus Notes from VFP 6
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00906066
Message ID:
00906070
Views:
41
Hi, Rich...

I think I posted the original Notes with Fox code a while back. Glad to see it's made the rounds. We are still using Notes 5, so I'm not able to help much specifically with Notes 6 at this point. See if your internal systems people can find the Domino Designer help file. This contains data on the COM/OLE object structures. You can also open Regedit and look for Either Lotus, Domino, or Notes under the Classes root. Lotus and Domino will give you the non-UI structures. (Or should anyway) Also try the Lotus website.

HTH

Richard

>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.
State of Florida, DCF
Previous
Reply
Map
View

Click here to load this message in the networking platform