The following will allow you to use lotus notes (email) through an A97 form. It also works with both A2K and AXP.
This code works for me, only if Lotus is open, otherwise it gives the
user a message to open notes and then press the button again.
The code is a little cumbersome, but its what I have gotten to work.
the me! references are to fields on a form and this is the code behind
a button on the form.
Private Sub SendMail2Cmd_Click()
On Error GoTo Err_SendMail2Cmd_Click
Dim session As Object
Dim mydoc As Object
Dim db As Object
Set session = CreateObject("notes.notessession"

Set db = session.CurrentDatabase
If TypeName(db) = "Nothing" Then
MsgBox ("Please Open your lotus mail and then press the send mail
button again."

Set session = Nothing
Set db = Nothing
Set mydoc = Nothing
Exit Sub
End If
Set mydoc = db.CreateDocument()
mydoc.AppendItemValue "subject", CStr(Me!SubjectBx)
mydoc.AppendItemValue "body", CStr(Me!BodyBx) & Chr(13) & CStr(Me!
Body1Bx) & Chr(13) & CStr(Me!Body2Bx)
mydoc.SaveMessageOnSend = True
mydoc.Send False, CStr(Me!ToBx)
MsgBox ("Mail has been sent"

Set session = Nothing
Set db = Nothing
Set mydoc = Nothing
Exit_SendMail2Cmd_Click:
Exit Sub
Err_SendMail2Cmd_Click:
MsgBox Err.Description
Resume Exit_SendMail2Cmd_Click
End Sub
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com