Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Read Attachment - Body (http://www.outlookbanter.com/outlook-vba/34185-read-attachment-body.html)

Vadhimoo November 30th 06 12:20 PM

Read Attachment - Body
 
Hi ,

If mail attachments are based on .msg (previous mails attached) means,
can i read the body of the attachment..?
like -MsgBox InputFolder.Items(intMailCount).Body 'Its working

MsgBox InputFolder.Items(intMailCount).Attachments(1).Bod y - Doesn't work
why? can you give exact code on this..?

Thanks in advance for your reply.

Michael Bauer [MVP - Outlook] December 4th 06 06:59 AM

Read Attachment - Body
 


With Outlook you'd have to save the attachments as a file, then open it with
CreateItemFromTemplate. With the Redemption (www.dimastr.com) it's possible
to open that attachments directly as an RDOMail item.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am Thu, 30 Nov 2006 03:20:01 -0800 schrieb Vadhimoo:

Hi ,

If mail attachments are based on .msg (previous mails attached)

means,
can i read the body of the attachment..?
like -MsgBox InputFolder.Items(intMailCount).Body 'Its working

MsgBox InputFolder.Items(intMailCount).Attachments(1).Bod y - Doesn't work
why? can you give exact code on this..?

Thanks in advance for your reply.



All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com