PC Review


Reply
Thread Tools Rate Thread

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

 
 
Sanjeev
Guest
Posts: n/a
 
      18th Mar 2010
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.
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      18th Mar 2010
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Sanjeev" <(E-Mail Removed)> wrote in message
news:6ED8C955-4893-4B97-BFBA-(E-Mail Removed)...
>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.


 
Reply With Quote
 
Sanjeev
Guest
Posts: n/a
 
      22nd Mar 2010
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..............

"Ken Slovak - [MVP - Outlook]" wrote:

> 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.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Sanjeev" <(E-Mail Removed)> wrote in message
> news:6ED8C955-4893-4B97-BFBA-(E-Mail Removed)...
> >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.

>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using outlook object model to add a MailItem to the Sent Items folder Omatase Microsoft Outlook Program Addins 1 22nd Jul 2007 07:36 AM
how to create attachment for a mailitem in outlook sunilmatta Microsoft Outlook Program Addins 0 25th Apr 2007 01:31 PM
Problem trying to create mailitem from Access if Outlook wasn't running Richard Sherratt Microsoft Outlook Interoperability 0 21st Jun 2006 02:38 AM
Outlook Draft Folder tracy Microsoft Outlook 1 20th May 2004 08:59 PM
Draft Folder stuck in Calendar folder of Outlook account Microsoft Outlook 3 10th Dec 2003 10:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:09 AM.