Redemption HTMLBody Property

  • Thread starter Thread starter Greg Fox
  • Start date Start date
G

Greg Fox

Why is the Redemption SafeMailItem.HTMLBody property 'read only' ?

I see sample code on the Redemption web site that sets this property,
but I get a VB6 compile error, saying "Can't assign to a read-only property"

Thanks,
Greg Fox
 
Only reading of the HTMLBody property is blocked, hence that is what
Redemption implements. To set this property you can either use the original
Outlook object or declare SafeMailItem as a generic Object to force late
binding - at run-time Redemption will be happy to forward the calls to
Outlook.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
The exact code does not matter; this is a _compile_ error -
the property is Read-Only (I'm wondering why... do I have an older DLL?)

Dim oREmail As Redemption.SafeMailItem

Set oREmail = New Redemption.SafeMailItem

oREmail.HTMLBody = "" '<-- Compile rrror: Can't assign to a
read-only property

redemption DLL version: 3.4.0.325
 
I think Dmitry gave you the information you need. Let us know if you have
any more problems with Redemption.

Also, don't forget that you need a statement in there somewhere to assign
the value of oREmail.Item to an existing Outlook item.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top