473,748 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Saving attachments from outlook express to Sql server table

Hi All,
I want to store all the attachment's name from outlook express to the sql
server database table using C#.
Is there a way around to do this.
Should i use the .psi files for that.
How could i do it.
Could anyone give me a hint, so that i can go to the way.
Thanks in advance.

Vipin Kumar
Apr 10 '06 #1
3 2662
You need to use MAPI and p/invoket to get access to the OutlookExpress data
(u can start from here
http://www.pinvoke.net/default.aspx/mapi32.MAPIReadMail)

After that the way is trivial - get data from OE and save it in SQLServer
Hi All,
I want to store all the attachment's name from outlook express to the sql
server database table using C#.
Is there a way around to do this.
Should i use the .psi files for that.
How could i do it.
Could anyone give me a hint, so that i can go to the way.


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Apr 10 '06 #2
Michael Nemtsev <Mi************ @discussions.mi crosoft.com> wrote:
You need to use MAPI and p/invoket to get access to the OutlookExpress data
(u can start from here
http://www.pinvoke.net/default.aspx/mapi32.MAPIReadMail)


?? Outlook Express isn't an MAPI program and doesn't provide any MAPI
services. As far as I can tell, the only way to access Outlook Express
messages is through reverse-engineering its .dbx file format. I made a
web-page about this:

http://www.wischik.com/lu/programmer/dbx_utils.html

but it's all geared to C++/win32 programming.

--
Lucian
Apr 10 '06 #3
No, OE *has* MAPI support, but unfortunatelly it's only Simple MAPI compliant
http://support.microsoft.com/?kbid=200018.

And if you google u can find the solution how to save attaches with Simple
MAPI.
Michael Nemtsev <Mi************ @discussions.mi crosoft.com> wrote:
You need to use MAPI and p/invoket to get access to the OutlookExpress data
(u can start from here
http://www.pinvoke.net/default.aspx/mapi32.MAPIReadMail)


?? Outlook Express isn't an MAPI program and doesn't provide any MAPI
services. As far as I can tell, the only way to access Outlook Express
messages is through reverse-engineering its .dbx file format. I made a
web-page about this:

http://www.wischik.com/lu/programmer/dbx_utils.html

but it's all geared to C++/win32 programming.


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Apr 10 '06 #4

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

Similar topics

3
2415
by: AspDotNetDeveloper | last post by:
I'm trying to troubleshoot why my ASP application can no longer send file attachments larger than 100K, and I have eliminated many possibilities already, but I'm running out of ideas. I think I have it narrowed down to an Outlook Express update that is installed on the Win 2K Server, but when I try to remove the update, then the application returns an Unknown Error during the objNewMail.Send function call. The symptoms are empty file...
12
4731
by: Arno R | last post by:
Hi all, This is a repost of a message posted at october 6. The answer I got was about MapiMessages.AttachmentIndex. I think I need the MSMAPI32.OCX to use this. (I don't have this file on my PC) My newsaccount wasn't working anymore until yesterday, so I'll try again. Question is: I know it is possible to send email with Access, but can one also automate the attachments?
5
15934
by: paii, Ron | last post by:
How do I setup a email with attachment for preview but require the user to push the SEND button in Outlook. I have the following function but it sends the email without the sender ever seeing it. Public Function PrintPDFemail2() ' This will create the PDF if the report is setup for it DoCmd.OpenReport "rptJobItemStat", acViewNormal
2
2529
by: Steve | last post by:
How do you programatically save files that are attached to an email to a specified folder? It could be one file or multiple files attached to the email. Can it be done if Outlook Express is being used or does Outlook have to be used? Thanks for all help! Steve
6
13300
by: A.M-SG | last post by:
Hi, I have an aspx page at the web server that provides PDF documents for smart client applications. Here is the code in aspx page that defines content type: Response.ContentType = "application/octet-stream"; Response.AppendHeader("Content-Disposition", "attachment;filename=" + fileID.ToString() + ".pdf");
1
1096
by: Vipin Kumar | last post by:
Hi All, I want to store all the attachment's name from outlook express to the sql server database table using C#. Is there a way around to do this. Should i use the .psi files for that. How could i do it. Could anyone give me a hint, so that i can go to the way. Thanks in advance. Vipin Kumar
6
10504
by: c_shah | last post by:
how to save outlook email attachments using VB.net?
0
894
by: Surmaj | last post by:
Hi I have a problem while saving the attachments of the outlook express mails in a local file. I am doing the following tasks. foreach (Object obj in inboxFolder.Items) { MailItem item = obj as MailItem ; ----
1
1390
by: =?Utf-8?B?U2VyZW5h?= | last post by:
For some reason .jpg attachments, infact any attachments in outlook express have all of a sudden decieded to take ages to open but if saved on the hard disc they open in a flash. i use Windows XP Pro, Outlook Express 6, Office 2003, i have searched the net for anyone that might have similar problems but only came up with someone that had the same problem in Microsoft Outlook 2003 which i dont use. and the solution directions did not match...
0
8995
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9558
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
9378
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
9331
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,...
1
6798
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
4608
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
3316
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
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.