473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C#.Net Outlook 2003 automation (programmatically) with Office.Inte

C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook

Problem:
I have my outlook 2003 configured with multiple mailbox on my local machine.
I want to specify the mailbox and server (Exchange server mail box)
to connect and then save the mailitems(from Inbox or any other folder)
based on a filter to a*.msg file.
I want to achieve this using only one Interop dll if this is possible.

Tried so far:
I have tried using both Outlook 11.0 object library
(Microsoft.Office.Interop.Outlook)
and Interop.MAPI dll but have not been successful to connect to a different
mailbox and save to *.msg file using only Interop.Outlook or Interop.MAPI.

Using Microsoft.Office.Interop.Outlook:
I have been able to save the defaultfolder(Inbox) to *.msg files
but I want to change the default mailbox to a second mailbox like
username2 instead of default mailbox username1.
How do I accomplish this using automation from C#.Net using
Microsoft.Office.Interop.Outlook?

Other Workaround using Interop.MAPI dll:
I have been able to connect using the Session.Logon of the interop.MAPI dll
but the mapi dll object model does not allow the messages to be saved to
*.msg file.
Any workaround using Interop.MAPI dll?

Any ideas/suggestions are welcome.

Thanks
Rob
Feb 13 '07 #1
1 3202
use VBA with Office, you fucking NooB

do you do everything that MS tries to shove down your throat?

IS UNNECESSARY CHANGE SEXY?
IS UNNECESSARY CHANGE SIMPLE?
On Feb 13, 10:39 am, rob <r...@discussions.microsoft.comwrote:
C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook

Problem:
I have my outlook 2003 configured with multiple mailbox on my local machine.
I want to specify the mailbox and server (Exchange server mail box)
to connect and then save the mailitems(from Inbox or any other folder)
based on a filter to a*.msg file.
I want to achieve this using only one Interop dll if this is possible.

Tried so far:
I have tried using both Outlook 11.0 object library
(Microsoft.Office.Interop.Outlook)
and Interop.MAPI dll but have not been successful to connect to a different
mailbox and save to *.msg file using only Interop.Outlook or Interop.MAPI.

Using Microsoft.Office.Interop.Outlook:
I have been able to save the defaultfolder(Inbox) to *.msg files
but I want to change the default mailbox to a second mailbox like
username2 instead of default mailbox username1.
How do I accomplish this using automation from C#.Net using
Microsoft.Office.Interop.Outlook?

Other Workaround using Interop.MAPI dll:
I have been able to connect using the Session.Logon of the interop.MAPI dll
but the mapi dll object model does not allow the messages to be saved to
*.msg file.
Any workaround using Interop.MAPI dll?

Any ideas/suggestions are welcome.

Thanks
Rob

Feb 16 '07 #2

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

Similar topics

7
by: MLH | last post by:
Is the following remotely correct? =DDE("C:\Program Files\Program Files\Outlook Express\OEmig50","Attachment","Name") I'm not sure that OEmig50.exe is the executable for OE. Anybody know? ...
2
by: Blake | last post by:
I'm using late binding to create Outlook email from an Access2K database. I am not referencing the Microsoft Office 9.0 Object Library nor the Microsoft Outlook 9.0 Object Library. Instead, I have...
1
by: Blake | last post by:
I'm using late binding to create Outlook email from an Access2K database. I am not referencing the Microsoft Office 9.0 Object Library nor the Microsoft Outlook 9.0 Object Library. Instead, I have...
4
by: Max | last post by:
Hi, I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003. The user selects the email client and clicks the button. The only...
10
by: John | last post by:
Hi When I open a new outlook email from vb.net, sometimes outlook is very slow to appear or occasionally outlook freezes completely. I am targeting mixed office2000/xp environments so I am...
26
by: Tom Becker | last post by:
Is there a way, from Access, to programmatically click the Send and Receive button in Outlook?
5
by: John A. Bailo | last post by:
I have a program that I'm converting from Outlook 2000 to Outlook 2003. It basically opens Outlook and iterates through a series of items in a public folder. I was able to run this as a...
1
by: allbelonging | last post by:
C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook Problem: I have my outlook 2003 configured with multiple mailbox on my local machine. I want to specify the mailbox...
4
by: musicloverlch | last post by:
Hi all, I have a database being used by 30 people and is split between the backend and frontend. The database has the ability to send e-mails through Outlook and I have even put Redemption on...
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:
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...
0
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...
0
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.