Create a new Outlook MailItem in an Outlook folder(not a draft)

S

Sanjeev

I want to create an Outlook MailItem and save it in a non-editable format. I
tried using Outlook Object Modal in
VB.NET(app.CreateItem(Outlook.OlItemType.olMailItem)) but it creates a draft
and i m not able to change it to a non-editable mail like a received /sent
item. Then i tried an extended mapi sample as well written in VC++.NET but i
am still not able to figure it out as to what is the parameter that i have to
change to make the mail non-editable.

NOTE: I just want to save the mail and not sending it to anybody.
 
K

Ken Slovak - [MVP - Outlook]

Any email is editable. Even a received email can be edited, just select
Edit, Edit Message.

If you want to simulate a sent message you either have to use Extended MAPI
or Redemption (www.dimastr.com/redemption). The way I do it in Redemption is
to create a new mail item, mark it as sent and set various properties such
as sent, sent on behalf of, received, etc. before saving the item for the
first time. Once the item is saved at all it cannot be faked as a sent or
received item.

The process would be the same with Extended MAPI.
 
S

Sanjeev

I solved it................
The .NET sample i was trying tht day was actually involving multiple
projects in the same solution n my changes to unsent flag weren't getting
reflected in the test project within tht solution. BT later, i figured it out
tht th .NET compiler was giving dll copying errors while individually
compiling VC++ project dll(Extended MAPI) within tht sol. nd so i copied the
dll manually to the expected location in the test project folder n it worked
out..........
Though i still dnt know why tht dll copying error is coming bt i dnt need to
know either right now, i ll figure it out later on in free time..............
 

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