Hi there,
I'm using the mapirtf.dll to send emails in RTF format (
The code works on one computer but not on another one, the function WriteRTF returns 896.
Does anyone know what is wrong?
Here is a part of the code
With MDIApp.mapiMessages
.Compose
.MsgReceiptRequested = False
.MsgSubject = objDASEmailItem.Subject
' Add recipients to the message...
' Verify if any Recipient specified...
If objDASEmailItem.Recipients.Count = 0 Then
SendMail = MSGEMAILNAME
Goto EndOfProcedure
End If
For Each objDASEmailRecipientItem In objDASEmailItem.Recipients
.RecipIndex = iRecipientIndex
.RecipAddress = objDASEmailRecipientItem.Address
.RecipDisplayName = objDASEmailRecipientItem.Address 'objDASEmailRecipientItem.DisplayName
.RecipType = mapBccList
iRecipientIndex = iRecipientIndex + 1
Next
DoEvents
' Set the RTF property...
lStatus = WriteRTF(.Name, .MsgId, CStr(.SessionID), objDASEmailItem.NoteText)
If lStatus <> 0 Then
SendMail = MSGUDRTFNOTSUCCESSFULL
Goto EndOfProcedure
End If
Call .Send(False)
DoEvents
End With