473,698 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extracting Attachment from .eml file through VB.net

I need to extract all information from .eml file without using outlook
express. I am able to extract all the information except Attachments. Can
somebody please suggest some solution ??
Nov 21 '05 #1
2 11232
* "=?Utf-8?B?VmlrYXMgR3V wdGE=?=" <Vikas Gu***@discussio ns.microsoft.co m> scripsit:
I need to extract all information from .eml file without using outlook
express. I am able to extract all the information except Attachments. Can
somebody please suggest some solution ??


Messages are often encoded in MIME format:

<URL:http://www.mhonarc.org/~ehood/MIME/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
You can use CDO for Exchange 2000 (CDOEX), load the eml into a CDO.Message
object, then you can access the message attachments directly.

Dim strm As ADODB.Stream
Dim myMail As New CDO.Message
strm = myMail.GetStrea m()
strm.Type = ADODB.StreamTyp eEnum.adTypeTex t
strm.LoadFromFi le("c:\file.eml ")
strm.Flush()
Dim attach As IBodyPart
For Each attach In myMail.Attachme nts
MsgBox(attach.F ileName)
Next

Cheers,
John Wadie

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5967
by: Ravi | last post by:
Iam trying to open an self extracting zip file from my windows application. it opens an command window and does not do any thing afterwards. here is the code iam doing it. System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents = false; proc.StartInfo.FileName = filename; proc.StartInfo.RedirectStandardOutput = true; proc.StartInfo.UseShellExecute = false;
2
2388
by: Zameer | last post by:
Hi All, I want to know how i can add attachment file to form for a particular user.Its like user fills his information on form and he can add an attachment file if he wants.And later when you click on the User.His information along with the attachment should be displayed.
3
3033
by: Leszek | last post by:
Hello! I'm trying to create a cab file and extract it. XP is using a library for it, but i cannot find anything about it.... I don't want to use 3rd party's tools like cabarc/compress/extract. Can someone give me a tip for it?
6
4921
by: rlntemp-gng | last post by:
I need to extract information from some Excel files but am stuck with part of it: As an example, I have the following Excel File that has 3 tabbed sheets: FileName: C:\ExcelData\JulyFile1.xls SheetName: Sheet1-07032007 RowCount: 325 ColumnCount: 15 SheetName: Sheet2-07102007 RowCount: 450 ColumnCount: 25 SheetName: Sheet3-07172007 RowCount: 625 ColumnCount: 45 (I have 7 other Excel files with similar attributes)
1
3469
by: =?Utf-8?B?UmFqdSBB?= | last post by:
hi, Can any one help me .. how to save outlook attachment file in C# windows Application... i m able to read the filename but i dont know how to save the attachment file to my local Drives... pls send me the code r give me any idea ... i have used filecopy and saveasfile method also but i get the error... Regards RAJ
2
1785
by: cnsabar | last post by:
Hi., Is there any perl modules available for extracting .sit files Looking for Ur help and suggetions Thanks Sabarish
0
1155
by: Cat | last post by:
Response.AppendHeader("Content-Disposition", "attachment; filename=ѧ У.txt"); This works correctly on Opera, FireFox or Safari. But on IE, the file name gets broken. Setting HeaderEncoding to UTF-8 didn't solve it. If I use Server.UrlEncode, the file name is shown fine on IE but broken like %XX%XX%XX... on other browsers. What can I do?
3
2185
by: sbettadpur | last post by:
hello I designed a web application using php and mysql for this i need to extract mail attachment from outlook express (specifically .doc files) for this is there any API's or any class or any library in php or in .NET. I downloaded several desk application which are extracting attachment from outlook express, using this i cannot integrate to my application( i.e web application). So let me know is there any solution for my problem. ...
0
5689
by: littlemaster | last post by:
The following program will send the mail with specified attachment file.Need to give the absolute path of the file. require "rubygems" require "ruport" require "ruport/util" r = Ruport::Report.new r.add_mailer :default, :host => "192.168.1.1",
0
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9016
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8856
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.