RE: Email via Lotus Notes
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Feb 23, 2004
- 493 views
Pete Stoner wrote: > > > Hi All, > I am looking for a little help, I would like to be able to send > email from within an (Windows) Eu program via Lotus Notes, I have > some VB code that I 'acquired' that is supposed to do just that, > but I know nothing about VB. > > Would someone like to try converting the code below into Eu? > > Option Explicit > Dim LNSession As New Domino.NotesSession > Dim LNDatabase As New Domino.NotesDatabase > > Dim LNNotesSession As Object > Dim LNNotesDB As Object > Dim LNNotesDoc As Object > Dim Rtfield As Object > Dim Attachment As Object > Dim ErrorMessage As String > Dim eMailSubject As String > Dim Message As String All of these Dim statements tell me that VB is using a COM object supplied by Notes. This can be done in Euphoria using EuCOM (http://www.rapideuphoria.com/eucom.zip). Take a look at the 'References' that this VB code is referring to, to see which Notes files contain the COM objects. Use Tbrowse (comes with EuCOM) to generate a wrapper for the COM objects, and you can use the wrapper to do all of the things that the VB code is doing. Read the docs and the FAQ (there's a question about converting VB code), and if you have questions, let me know. Matt Lewis