A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 18th 10, 11:52 AM posted to microsoft.public.outlook.program_forms
Sanjeev
external usenet poster
 
Posts: 5
Default Create a new Outlook MailItem in an Outlook folder(not a draft)

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.olMailIte m)) 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.
Ads
  #2  
Old March 18th 10, 02:27 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Create a new Outlook MailItem in an Outlook folder(not a draft)

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" wrote in message
...
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.olMailIte m)) 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.


  #3  
Old March 22nd 10, 11:46 AM posted to microsoft.public.outlook.program_forms
Sanjeev
external usenet poster
 
Posts: 5
Default Create a new Outlook MailItem in an Outlook folder(not a draft

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" wrote in message
...
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.olMailIte m)) 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.


.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Draft folder has disappeared from Outlook 2007 WG Outlook - Installation 1 March 7th 09 05:11 PM
Exchange - Outlook [Draft and Notes Folder] Evan Camilleri Outlook - General Queries 4 February 9th 09 09:18 PM
Outlook 2003: Draft Folder - Save As Kevin Roseler Outlook - General Queries 0 July 10th 08 08:56 PM
Outlook Express 6 - Draft Email Icons on Desktop - Unable to use in draft form [email protected] Outlook Express 1 October 13th 06 12:58 PM
How can I create a MailItem that displays like a received MailItem ? Clive Outlook - Using Forms 0 February 27th 06 05:14 PM


All times are GMT +1. The time now is 01:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.