473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

C# APP: Retrieve email attachment from Exchange

I need to be able to connect to MS Exchange 2007 and find a particular email with a particular attachment on it. This attachment is sent to multiple people, but I have an account set up where the email with the attachment will be the only message being sent to that inbox. Is there a way to look through exchange to fine a particular email sent to a particular recipient and retrieve the message's attachment? I've looked through the MSDN library, and from what I can tell in their documentation I should be able to do this, but it's not making a whole lot of sense. Any help is appreciated! Thanks.
Aug 6 '08 #1
6 4712
Plater
7,872 Expert 4TB
Could you not use the exchange API to log into the server with that special account and just "retreive your mailbox"
Aug 6 '08 #2
Could you not use the exchange API to log into the server with that special account and just "retreive your mailbox"
I'm don't know. That's my problem, I've been looking for a way even to connect to exchange and I can't seem to find a straight answer. I take it then that it is possible to maybe just programatically log into exchange as that special user and just grab the message and the attachment that would be included with it? I will do some researching on that.
Aug 6 '08 #3
Plater
7,872 Expert 4TB
It seems like you should be able to. You can do it with the outlook API maybe?
Aug 6 '08 #4
Curtis Rutland
3,256 Expert 2GB
Check out this thread:
http://bytes.com/forum/thread611873.html
Aug 6 '08 #5
Anyone who cares, I got this figured out. I wound up using cdoex and msado28 in order to connect to exchange and retrieve the mailbox as well as the messages in it.
Nov 9 '08 #6
Plater
7,872 Expert 4TB
I thought .NET had built in support to query exchange like a database, but all I could find was this:
http://www.codeproject.com/KB/database/exdav.aspx
Nov 10 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Benjamin | last post by:
Hello, I need some advice on a financial application I'm doing. First, I suppose I should give a little background so you know where I'm coming from. For 5 years I earned my living doing COBOL...
3
by: Le | last post by:
So here's my dilemma. I need an automated SQL Server (2000) job that runs once once per hour. This jobs should: 1) Retrieve unread email for the user "Le" from our Exchange Server, and insert...
2
by: Fred | last post by:
Is there a good code sample, in C#, showing how to send eamil with attachment, from a Windows Form like 'Send To' in Word, that will pickup Contacts in Outlook/Exchange 2000. I have searched...
2
by: mark wheeler via .NET 247 | last post by:
I have a requirement whereby I need to read the contents &attachments of email sent to an account in exchange server2003. The email details (sender, attachment file names, date, etc) areto be stored...
0
by: CTDev Team | last post by:
Hi, We are using Exchange Server 5.5, and have applications written in VB6 and C# that read and process emails. We are experiencing intermittent errors similar to C# Application ...
2
by: Noro | last post by:
Hi All, When I try to get the email address of the current user, I retrieve a string like this that represents the email address: /o=ORGANIZATION/ou=Sede/cn=Recipients/cn=USERNAME What can...
1
by: netLynx | last post by:
Hi, I am rewriting code from VB6 using MAPI into VB.NET I need to read an attachment off an email on an Exchange Server. In the old VB6 (not written by me) they restrict the Messages.type to...
4
by: John | last post by:
Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab...
2
by: Erik Witkop | last post by:
So I have been trying to get this to work all day. I can't get a local file on my web server to attach to an email. Right now I have it printing out in the body of the email. Please help me with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.