Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > Third Party Products

Third Party Products Discussion on third party components for VB.NET

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2010, 5:22 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5
 
Join Date: Dec 2009
Age: 53
Posts: 2
Reputation: 0
TonyBunney is on a distinguished programming path ahead
Default Accessing Mail Attachments

I send numerous emails as part of my business and receive "Undelivered Mail" emails where an email files due to (for example) the email no longer exists.
These "Undelivered Mail" emails normally contain the email address which has failed in the body of the email and so I am able to identify the email and process the return accordingly BUT some email systems return the details of the original email address as attachments, which can be text (.txt) files or an mail object (which is a copy of the original email that I sent).
I have no problem accessing the data in the text files but I am having problems access the details of the attachment which contain the original email)
I have tried
Dim mailattachment As Outlook.Attachment = Me.MailItem.Attachments.Item(i) but the Attachment object does not seem to have a property which reveals the email address I am looking for.
I have also tried dim MailAtt As Microsoft.Office.Interop.Outlook.MailItem = Me.MailItem.Attachments.Item(i) but this results is a COM error as follows (No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).)

Any Help would be appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
attachment, mailitem


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 5:48 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.