Outlook Programming using C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey folks,

I have created two empty.pst files and it created two empty folders both
named "Personal Folder". This is fine, but my problem is I have two .pst
files, p1 and p2. I want to move Inbox messages to Inbox of p1 and Sent
messages to Sent folder of p2. I am not sure how should I create two
different folder in two seperate .pst files and then move messages. I know
how to move message between folder, don't know how to move message to .pst
since both .pst files appear as "Personal Folder"

Any help?

thanx
-anku
 
anku,
I doubt that the Outlook Object Model provides methods to move messages from
one .pst store to another physical .pst store. You will most likely need to
extract the messages into an array or collection object, switch to using the
new pst file, and then save all the messages into the requisite folder in the
new one.
Peter
 
Hi Peter,

I think I made it some what complicated in my previous posting....I
want to move messages from my Inbox to .pst file NOT from one .pst to
another.

-anku
 
So my question is how to back up email messages (i.e. move from Inbox to .pst
file) programmatically? I search online and I saw lot of reviews from other
developers about backing up email messages "Programatically" in outlook, but
they didn't provided good explanation of how to do that.

thanx
-anku
 
I would reccomend looking at www.freevbcode.com

there are quite a few good examples there

but; I'll have to say that Outlook comes with it's own programming
language; and it sure isn't C#!

VB is the worlds most popular language; this C# _CRAP_ was never
invented

HTH

-Todos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top