Custom Mail Message With XP SP3

  • Thread starter Thread starter tguenther
  • Start date Start date
T

tguenther

I have a custom form that I use with Outlook Redemption to create
multiple instances of a mail message. The form worked great until I
upgraded to Office XP SP3 from SP2. I now recieve the security warning
message. The line of code that is causing the problem is

strBody = Item.HTMLBody

Can I not save the HTMLBody to a variable anymore?

Thank you,
Tyler
 
Reading (but not writing) .HTMLBody and .Body are restricted in Outlook 2002
SP3, Outlook 2003 and will be in Outlook 2000 SP4 whenever that comes out.
However, Redemption has safe properties for both .HTMLBody and .Body so if
you use a Redemption SafeMailItem you should be able to read those
properties with no problems.
 
I am trying to read the .HTMLBody property using a Redemption
SafeMailItem but still recieve the security warnings.

set SafeItem = CreateObject("MMOutlook.MMMailItem") 'create safe mail
item
set oItem = Application.CreateItem(0)

SafeItem.Item = oItem
msgbox SafeItem.HTMLBody 'recieve a security warning here

Tyler
 
What version of Redemption are you using? I tested the following code using
Redemption version 3.3.0.316 on an Outlook 2002 SP3 machine in Outlook VBA
code:

Sub TestRedemptionHTMLBody()
Dim oMail As Outlook.MailItem
Dim safMail As Redemption.SafeMailItem

Set oMail = Application.ActiveExplorer.Selection(1)
Set safMail = oMail.Item
MsgBox safMail.HTMLBody

Set safMail = Nothing
Set oMail = Nothing
End Sub

I selected an HTML item in my Inbox and ran that code with no errors and no
prompts from Outlook.
 
Back
Top