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

How to programmatically display a new mail item into a “sent” form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 20th 08, 07:32 PM posted to microsoft.public.outlook.program_forms
Pavel Rosoi
external usenet poster
 
Posts: 21
Default How to programmatically display a new mail item into a “sent” form

I need to programmatically display a mail item into a form similar to “sent”
item form (with Reply, ReplyAll and Forward buttons).
My approach is:
-cancel the Item_Open event,
-create a new mail item using a published custom form which is based on a
sent item.
-display the new mail item.
The problem is that my new item is displayed into a standard new mail form
and I don’t know how to display this new item into a “sent” form. I have to
use only Outlook 2003 and VBScript.
Thank you in advance.

Ads
  #2  
Old June 20th 08, 08:03 PM posted to microsoft.public.outlook.program_forms
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to programmatically display a new mail item into a "sent" form

The real solution is to create the item in the sent state.
See http://www.dimastr.com/redemption/faq.htm#8 for a workaround.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
I need to programmatically display a mail item into a form similar to
"sent"
item form (with Reply, ReplyAll and Forward buttons).
My approach is:
-cancel the Item_Open event,
-create a new mail item using a published custom form which is based on a
sent item.
-display the new mail item.
The problem is that my new item is displayed into a standard new mail form
and I don't know how to display this new item into a "sent" form. I have
to
use only Outlook 2003 and VBScript.
Thank you in advance.



  #3  
Old June 20th 08, 08:19 PM posted to microsoft.public.outlook.program_forms
Pavel Rosoi
external usenet poster
 
Posts: 21
Default How to programmatically display a new mail item into a "sent"

Thank you. I have to have Redemption installed on all computers which run
Outlook forms with this code-behind?

"Dmitry Streblechenko" wrote:

The real solution is to create the item in the sent state.
See http://www.dimastr.com/redemption/faq.htm#8 for a workaround.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
I need to programmatically display a mail item into a form similar to
"sent"
item form (with Reply, ReplyAll and Forward buttons).
My approach is:
-cancel the Item_Open event,
-create a new mail item using a published custom form which is based on a
sent item.
-display the new mail item.
The problem is that my new item is displayed into a standard new mail form
and I don't know how to display this new item into a "sent" form. I have
to
use only Outlook 2003 and VBScript.
Thank you in advance.




  #4  
Old June 21st 08, 09:35 PM posted to microsoft.public.outlook.program_forms
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to programmatically display a new mail item into a "sent"

Yes.
You can use OOM alone to create a post item and then change its message
class back to IPM.Note, but the icon won't be right.
You can set PR_ICON_INDEX without Redemption using MailItem.PropertyAccessor
in Outlook 2007.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
Thank you. I have to have Redemption installed on all computers which run
Outlook forms with this code-behind?

"Dmitry Streblechenko" wrote:

The real solution is to create the item in the sent state.
See http://www.dimastr.com/redemption/faq.htm#8 for a workaround.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
I need to programmatically display a mail item into a form similar to
"sent"
item form (with Reply, ReplyAll and Forward buttons).
My approach is:
-cancel the Item_Open event,
-create a new mail item using a published custom form which is based on
a
sent item.
-display the new mail item.
The problem is that my new item is displayed into a standard new mail
form
and I don't know how to display this new item into a "sent" form. I
have
to
use only Outlook 2003 and VBScript.
Thank you in advance.






  #5  
Old June 23rd 08, 03:18 PM posted to microsoft.public.outlook.program_forms
Pavel Rosoi
external usenet poster
 
Posts: 21
Default How to programmatically display a new mail item into a "sent"

Thank you for answer. There is no way to do that without the deploying of
another library?


"Dmitry Streblechenko" wrote:

Yes.
You can use OOM alone to create a post item and then change its message
class back to IPM.Note, but the icon won't be right.
You can set PR_ICON_INDEX without Redemption using MailItem.PropertyAccessor
in Outlook 2007.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
Thank you. I have to have Redemption installed on all computers which run
Outlook forms with this code-behind?

"Dmitry Streblechenko" wrote:

The real solution is to create the item in the sent state.
See http://www.dimastr.com/redemption/faq.htm#8 for a workaround.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
I need to programmatically display a mail item into a form similar to
"sent"
item form (with Reply, ReplyAll and Forward buttons).
My approach is:
-cancel the Item_Open event,
-create a new mail item using a published custom form which is based on
a
sent item.
-display the new mail item.
The problem is that my new item is displayed into a standard new mail
form
and I don't know how to display this new item into a "sent" form. I
have
to
use only Outlook 2003 and VBScript.
Thank you in advance.







  #6  
Old June 23rd 08, 06:33 PM posted to microsoft.public.outlook.program_forms
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to programmatically display a new mail item into a "sent"

As I mentioned before, not unless you are using Outlook 2007.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
news
Thank you for answer. There is no way to do that without the deploying of
another library?


"Dmitry Streblechenko" wrote:

Yes.
You can use OOM alone to create a post item and then change its message
class back to IPM.Note, but the icon won't be right.
You can set PR_ICON_INDEX without Redemption using
MailItem.PropertyAccessor
in Outlook 2007.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
Thank you. I have to have Redemption installed on all computers which
run
Outlook forms with this code-behind?

"Dmitry Streblechenko" wrote:

The real solution is to create the item in the sent state.
See http://www.dimastr.com/redemption/faq.htm#8 for a workaround.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Pavel Rosoi" wrote in message
...
I need to programmatically display a mail item into a form similar to
"sent"
item form (with Reply, ReplyAll and Forward buttons).
My approach is:
-cancel the Item_Open event,
-create a new mail item using a published custom form which is based
on
a
sent item.
-display the new mail item.
The problem is that my new item is displayed into a standard new
mail
form
and I don't know how to display this new item into a "sent" form. I
have
to
use only Outlook 2003 and VBScript.
Thank you in advance.









 




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
Making email item 'Read' programmatically Dinesh Patil Outlook and VBA 1 March 3rd 08 03:17 PM
identify reply programmatically for mail item BiangL Outlook and VBA 4 October 28th 07 01:34 AM
forward a mail item with form region Nikolas Outlook - Using Forms 7 December 1st 06 07:34 PM
How can I programmatically display an email message saved in a msg file? Clive Outlook - Using Forms 1 November 29th 06 10:39 PM
Sending custom form item as mail attachment to person outside org DougMunday Outlook - Using Forms 4 April 13th 06 09:02 PM


All times are GMT +1. The time now is 01:13 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.