05-05-2010 03:59 PM
Has anyone successfully attached a document to a Lotus Notes email? I'm having some issues, as you can see with the diagram.
A newbie to Labivew 2009...sure could get some pointers!!
05-05-2010 10:54 PM
05-06-2010 07:30 AM
I did have a problem with Lotus notes sending an attachment but i finally got it working.
I could send the attachment succesfully but my problem was that i could not open the attachment.
What is your problem? I can't open your VI i have LV8.6. Which diagram?
05-06-2010 07:37 AM
05-06-2010 07:39 AM
11-05-2010 01:17 PM
Old thread revival time!
OK, now that I've had some time and done a little investigation...
When you wire the Document Class, one of the items you'll see is CreateRichTextItem. Select this and wire this to another Invoke Note..this should bring up the RichText Item Class. Select Embed Object and go from there. The attached VI will explain what I'm doing and hope not confuse you even more.
I noticed that my two posts were merged about the RichText and the SendTo item, so I'll continue with the way Lotus Notes likes to send.
In VBA (since this is all I have as a text based language), I can send a email by using the Send Method if I declare my SendTo recipients eariler in my code. Like this:
Sub TestLotusNotes()
Dim s As New NotesSession, dir As NotesDbDirectory, db As NotesDatabase, doc As NotesDocument
s.Initialize
Set dir = s.GetDbDirectory("")
Set db = dir.OpenMailDatabase
Set doc = db.CreateDocument
With doc
.ReplaceItemValue "SendTo", "John Doe"
.ReplaceItemValue "Subject", "Hi"
.ReplaceItemValue "Body", "This is a test."
.SaveMessageOnSend = True
.Send False
End With
Set doc = Nothing
Set db = Nothing
Set dir = Nothing
Set ses = Nothing
End Sub
Now, if I wire this in Labview the same way I have it written in my VBA code, it fails when I try to send the email. I get a Error -2147217264 from Lotus Notes. I've noticed that if I place my "To" string to the optional recipients spot, it works. Hmmm....
I'm still trying to investigate, but I wondered if anyone else has ran into this problem and gotten this to work without resorting to wiring the SendTo item to the recipients area.