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

Status
Not open for further replies.
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.
 
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.

"Sanjeev" <Sanjeev> wrote in message

news:6ED8C955-4893-4B97-BFBA-65A6E8FCF05E@microsoft.com...
> 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.
 
Re: 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..............
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.

> >

>

> "Sanjeev" <Sanjeev> wrote in message
> news:6ED8C955-4893-4B97-BFBA-65A6E8FCF05E@microsoft.com...
> >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.


> .
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
Commodore Any way to create "from-only" account on Outlook 2021? Using Outlook 1
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 5
G Can't create Folder Groups in Outlook 2013 Using Outlook 0
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
R Can not create folder to store specific emails in in Outlook for Mac Using Outlook 1
A Outlook macro to create search folder with mail categories as criteria Outlook VBA and Custom Forms 3
Rupert Dragwater How to create a new email with @outlook.com Using Outlook.com accounts in Outlook 32
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
R Outlook add-in to create new contact from an email. Using Outlook 0
Tanja Östrand Outlook 2016 - Create Macro button to add text in Subject Outlook VBA and Custom Forms 1
D Outlook macros to create meeting on shared calendar Outlook VBA and Custom Forms 10
G How do I create a custom pick list in VB for an outlook automated email? Outlook VBA and Custom Forms 1
Diane Poremsky Create a custom field for Outlook messages Using Outlook 0
Diane Poremsky Create a Custom Numbering Field for Outlook messages Using Outlook 0
Diane Poremsky Manually create a POP3 account in Outlook 2007 Using Outlook 0
T Create Rule For Secondary E-Mail Address In Outlook 2016 Using Outlook 4
Diane Poremsky Use VBA to create an Outlook Search Folder for Sender Using Outlook 0
Diane Poremsky Create an Outlook appointment from an email message Using Outlook 4
Diane Poremsky Outlook Crashes When You Reply or Create a New Message Using Outlook 0
I Create custom Outlook 2013 Rule in Office 365 Outlook VBA and Custom Forms 5
C Edit/Create Pen Not Working Outlook 2013 Using Outlook 1
Rupert Dragwater Outlook could not create the work file Using Outlook 5
J Outlook Rule - Create Link in Forwarding Message Outlook VBA and Custom Forms 2
E Create a URL hyperlink in an Outlook custom form? Outlook VBA and Custom Forms 2
R iCloud Issues in Outlook 2013, cannot create reminders Using Outlook 2
Rupert Dragwater How to delete old rules and create new in Outlook 2013 Using Outlook 12
P Cannot open Options Menu Outlook 2007 and Cannot create a new profile Using Outlook 0
C Outlook 2007 cant create new account Using Outlook 7
G Outlook could not create the work file Using Outlook 0
K Outlook Cached Mode - can't create rules to move email to another mailbox Using Outlook 2
O Can't create new email or access email acounts Outlook 2003 Using Outlook 1
S [outlook-users] Create contact group from other user's contacts Using Outlook 1
J Create new outlook task into task subfolder using vba Using Outlook 6
L Create hyperlinks to bookmarks in Outlook 2003 otf file Using Outlook 1
B How do I create and send mail in Outlook 2003 from code? Using Outlook 5
O Outlook 2010 - How to create custom Group By Arrangements for email Using Outlook 3
R Outlook 2007 attachments create multiple copies in the inbox Using Outlook 3
J Create or Import a Outlook Rule through C# code. Outlook VBA and Custom Forms 2
F can I use Outlook 2007 to create peer review/approve/reject forms Outlook VBA and Custom Forms 1
E Outlook could not create the work file. Check the temp environment variable Using Outlook 8
D Create a macro in Outlook to run a rule Outlook VBA and Custom Forms 32
B How to create the customized Outlook SQL DASL for selected days? Outlook VBA and Custom Forms 2
N How Can I create an Outlook Macro to import calendar? Outlook VBA and Custom Forms 1
P Create appointment to custom (shared) outlook calendar Outlook VBA and Custom Forms 3
S HELP: Create Buttons in Outlook Email body or Tool bar Outlook VBA and Custom Forms 1
N How to create hidden rule in outlook 2007 Outlook VBA and Custom Forms 3

Similar threads

Back
Top