I have this code:
'send a message with an attachment....
Dim domSession As New NotesSession
Dim domNotesDatabaseMailFile As NotesDatabase
Dim domNotesDocumentMemo As NotesDocument
Dim domNotesRichTextItemBody As NotesRichTextItem
' Put your passwork in the quotes below to skip prompting
domSession.Initialize (""

'domSession.InitializeUsingNotesUserName "", "joshjames"
On Error GoTo ErrorHandler
' Either SendTo, CopyTo, or BlindCopyTo is required.
If (Text1.Text = ""

Then
MsgBox ("Send To value required"

Exit Sub
End If
Dim dbdir As NotesDbDirectory
Set dbdir = domSession.GetDbDirectory(""

Set domNotesDatabaseMailFile = dbdir.OpenMailDatabase()
' Generate an error if previous attempts were unsuccessful.
If domNotesDatabaseMailFile Is Nothing Then
MsgBox ("Mail file not open"

Exit Sub
End If
Dim SendToArray As Variant
SendTo = Text1.Text
' Create a new memo document.
Set domNotesDocumentMemo = domNotesDatabaseMailFile.CreateDocument
Call domNotesDocumentMemo.AppendItemValue("Form", "Memo"

Call domNotesDocumentMemo.AppendItemValue("From", domSession.CommonUserName)
Call domNotesDocumentMemo.AppendItemValue("SendTo", SendTo)
Call domNotesDocumentMemo.AppendItemValue("Subject", m_Subject)
Set domNotesRichTextItemBody = domNotesDocumentMemo.CreateRichTextItem("Body"

domNotesRichTextItemBody.AppendText (Text3.Text)
' This is where you can add support for attachments.
attachment1 = PathAndFileNameHere
Call domNotesRichTextItemBody.EmbedObject(EMBED_ATTACHMENT, "", attachment1) 'attaches the file to the body field
' Send the document.
domNotesDocumentMemo.Send (False)
MsgBox "Mail Sent with Attachment " & attachment1
Exit Sub
ErrorHandler:
MsgBox Err.Number & " " & Err.Description
with a Tools - Reference to Lotus Domino Objects (can be found in the notes503 dir) and the lib is called domobj.tlb.
About your error of cannot create activex object lib (or something like that). I get the same. According to the ms Knowledge Base this should not be a problem. Something maybe to do with the fact that your machine is not set up to make changes to the registry. Here is the url:
If you ever get this to work can you let me know, as it is starting to get a bit frustrating now. I can get most of it to work (I think I got quite a bit of code from you before), I just cannot get notes to send a message without the promy for a password.
A bit long winded i know, but try also:
There is a ocs called dco.ocx available for download.
Nick