Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / June 2004

Tip: Looking for answers? Try searching our database.

Help on getting email .body using redemption

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian Baker - 29 Jun 2004 08:40 GMT
Hi
I am using Redemption and still get the security prompt when trying to get
the body of an email message. The following code works to get the subject
but not the body:
Sub GetKinderEmails()
   Dim SafeItem, oItem, SelEmail

   Set SafeItem = CreateObject("Redemption.SafeMailItem")
   Set oItem = Outlook.Session.GetDefaultFolder(olFolderInbox).Items
   Set SelEmail = oItem.Find("[Subject]=""Kindergarten Record""")

   While TypeName(SelEmail) <> "Nothing"
      Debug.Print SelEmail.Subject 'Works
      Debug.Print SelEmail.Body 'Starts Security Dialogue
      Debug.Print "-----------------------------"
      Set SelEmail = oItem.FindNext
   Wend

End Sub

Any help is appreciated
Signature

Regards
Ian
If a=ian, b=jackaroo, c=net and d=au then
the answer is a@b.c.d
-

Sue Mosher [MVP-Outlook] - 29 Jun 2004 13:24 GMT
You're not using your SafeItem at all. Try:

   SafeItem.Item = SelEmail
   MsgBox SafeItem.Body

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi
> I am using Redemption and still get the security prompt when trying to get
[quoted text clipped - 17 lines]
>
> Any help is appreciated
Ian Baker - 29 Jun 2004 23:42 GMT
Thanks Sue - I'm not fully familiar with Redemption yet but what a good
product

Signature

Regards
Ian Baker
(If a=ian, b=jackaroo, c=net, d=au then me= a@b.c.d)
-

> You're not using your SafeItem at all. Try:
>
[quoted text clipped - 22 lines]
> >
> > Any help is appreciated
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.