Accessing an outlook email message body

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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
T

TD

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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
D

Dmitry Streblechenko \(MVP\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top