New problem -
I can't seem to retrieve the HTMLBody content of a message.
I'm using this code which returns nothing for htmlbody - even though the
same message using outlook does return the htmlbody....
Any clues?
I can't seem to retrieve the HTMLBody content of a message.
I'm using this code which returns nothing for htmlbody - even though the
same message using outlook does return the htmlbody....
Code:
Set oApp = New Outlook.Application
Set oMess = oApp.CreateItemFromTemplate("C:\test.msg")
Set rMess = New Redemption.SafeMailItem
rMess.Item = oMess
If rMess.BodyFormat = olFormatHTML Then
rtf.Text = rMess.HTMLBody 'YIELDS NOTHING
rtf.Text = oMess.HTMLBody 'YIELDS THE MESSAGE BODY
Else
rtf.Text = rMess.Body
End If
Any clues?