PST mails

S

SDeep

Hi
Namespace.AddStore method create a new pst file. But when open this
pst file in Outlook, it contains only a single entry "Deleted Item". This
pst file don't contains entries like Inbox,Outbox,Sentitem etc.
Is there any method to create a pst file which contains all entries.
Thanks
 
S

Sue Mosher [MVP-Outlook]

When you add a .pst file to an existing profile, Outlook only creates the
Deleted Items folder automatically. You can create other folders with the
MAPIFolder.Folders.Add method. Also, if the .pst file is ever used as the
default store for a profile, Outlook will automatically created the required
default folders in it.

Maybe you should explain exactly what it is that you're trying to
accomplish.
 
S

SDeep

Thanks
If i create a pst file then is there any method to set this file as
default store for a profile?
Microsoft provides a book "Outlook Programming".
Does this include all these concepts as well as import and export from a pst
file?
 
S

Sue Mosher [MVP-Outlook]

The Outlook object model itself provides no method for setting a store as
the default delivery location. It might be possible with the Profman library
from Redemption (http://www.dimastr.com/redemption/) but I haven't explored
that. The technique that Microsoft provides is to apply a .prf profile file,
which you can build with the Custom Installation Wizard or Custom
Maintenance Wizard from the Office Resource Kit.

Importing and exporting consists of copying data and creating new items. Any
Outlook programming book should cover those basic concepts. There is,
however, no automation for the Import and Export Wizard itself.
 
S

SDeep

Thanks
As you said
"Importing and exporting consists of copying data and creating new items. "
If i export something like message,contacts etc. from Outlook Express to
Microsoft Outlook. Then messages,contacts etc will copy in default pst file
of Microsoft Outlook.
Can i copy all these messages,contacts etc. in a seperate pst which is not
set as default for Microsoft Outlook.
Actually i want to copy all these messages,contactc etc. in a seperate pst
which is not set as default for Outlook.
Thanks
 
S

Sue Mosher [MVP-Outlook]

If Outlook Express had a robust programming interface, you could. But it
doesn't.

If this is a one-time operation, you could just create a new Outlook profile
with an empty .pst file and use OE to export the data there. Then go back to
using your regular Outlook profile.
 
S

SDeep

Thanks
Can you give a link for how to send and receive mail in Microsoft
Outlook. Can we send/receive mail without opening Microsoft Outlook? Does
"Outlook Programming" provided by Microsoft include all these things?
 
S

SDeep

Hi
I'm thankful to you for your major support. I have one last question
related with "Outlook Programming" provided by Microsoft. the question is
Can i create and add a new message(mail) to outlook using Outlook
Programming. i mean i create a message using Outlook programming. This
message has everything which should be in a mail like
subject,To,CC,Body,Attachment etc.
And when i open Outlook then i see created message in Inbox or any other
folder.
Thanks
 
S

Sue Mosher [MVP-Outlook]

Yes, take a look at the Application.CreateItem method in the outlook object
model.
 

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

Top