![]() |
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. |
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. |
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. . |
All times are GMT +1. The time now is 05:32 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com