Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to extract attachments from a MSG file
Message
From
03/02/2009 04:18:38
 
 
To
03/02/2009 03:56:03
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01378889
Message ID:
01378923
Views:
12
This works much better:
        Dim loMessage As New CDO.Message
        Dim loStream As New ADODB.Stream

        loStream.Mode = ADODB.ConnectModeEnum.adModeReadWrite
        loStream.Type = ADODB.StreamTypeEnum.adTypeText
        loStream.Open()

        loStream.LoadFromFile("d:\Test.msg")

        loMessage.DataSource.OpenObject(loStream, "_Stream")

        MessageBox.Show(loMessage.From)
        MessageBox.Show(loMessage.To)
        MessageBox.Show(loMessage.TextBody)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform