Accessing an outlook email message body

  • Thread starter Thread starter TD
  • Start date Start date
T

TD

I'm successfully using redemption to access messages and SMTP addresses
etc. as they arrive in outlook with one exception - I can't access the
message body.

If anyone has a suggestion on how I can access an incomming message body
using redemption or the native outlook api without triggering the
address book security, I'd appreciate your help.

Thanks in advance.
 
Sue, I appreciate your help. Unfortunatly, I'm having difficulty
actually reaching .body or .HTMLbody. If you could point me to a snippet
of code that shows how to access it, I'd appreciate it.

Below is an extract of what I'm using so far in case it's of any value.
My objective is to extract message text, manipulate it, and put it into
a new message sent to TargetEmail.

Set utils = CreateObject("Redemption.MAPIUtils")
Set MailItem = Item

TargetEmail = "(e-mail address removed)"

PrSenderEmailAddress = &HC1F001F
SenderEMail = utils.HrGetOneProp(MailItem.MAPIOBJECT,_
PrSenderEmailAddress)
MailItem.Save

' My problems start here
Set SafeInboxItem = CreateObject _
("Redemption.SafeMailItem")
SafeInboxItem = MailItem

Thanks.
 
The lines

Set SafeInboxItem = CreateObject _
("Redemption.SafeMailItem")
SafeInboxItem = MailItem

must be

Set SafeInboxItem = CreateObject _
("Redemption.SafeMailItem")
SafeInboxItem.Item = MailItem 'note .Item
MsgBox SafeInboxItem.Body



Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top