I’m programming in VB through an Access database trying to utilize the Lotus Notes COM object. What I’m trying to do is send HTML emails using the PassThruHTML property. Things aren’t working.
Here’s the sample code the documentation provides (WHICH DOES NOT WORK!)…
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim doc As New NotesDocument(db)
Call doc.AppendItemValue("From", session.UserName)
Call doc.AppendItemValue("Subject", _
"Meeting time changed")
Dim richStyle As NotesRichTextStyle
Set richStyle = session.CreateRichTextStyle
Dim richText As New NotesRichTextItem(doc, "Body")
richStyle.PassThruHTML = True
Call richText.AppendStyle(richStyle)
Call richText.AppendText("<B>Hello</B>")
Call doc.Save(True, False)
End Sub
Anyway, I’ve seen some other posts suggesting to wrap my HTML code in brackets… that doesn’t work either.
Has anyone here come across this problem recently and found a solution? Anyone here ever successfully sent an HTML-formatted email from the Lotus Notes COM object???
I truly appreciate any help anyone could provide.
Thank you!