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

Creating mailitem with reply/reply to all/forward buttons



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 21st 07, 10:27 AM posted to microsoft.public.outlook.program_forms
chrisl
external usenet poster
 
Posts: 4
Default Creating mailitem with reply/reply to all/forward buttons

Hi,

I have an application that reads a .msg file from disk and uses an Outlook
object to create the outlook instance and a mailitem using the
CreateItemFromTemplate method on the application object.

When I execute the Display(object modal) method on the mailitem the form
displays the mail message as a new item with the Send button.

As the .msg file is actually a saved mail from a received email in an
outlook folder I need it to recognise it as a mail that has to show the
Reply/Reply to All/Forwad buttons (as it does if I double click the file on
the disk).

I can't seem to find anywhere how I force the mailitem to natively
understand the mail is to be displayed in a response mode and not a new item
mode.

Any help is appreciated.
Ads
  #2  
Old June 21st 07, 06:22 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default Creating mailitem with reply/reply to all/forward buttons

In article ,
=?Utf-8?B?Y2hyaXNs?= wrote:
I can't seem to find anywhere how I force the mailitem to natively
understand the mail is to be displayed in a response mode and not a new item
mode.

CreateItemfromTemplate should always create the item to send. I think what you
want to do is just open the existing item. Look for a method that opens the
item from the file system.

--
Hollis Paul
Mukilteo, WA USA


  #3  
Old June 22nd 07, 12:41 AM posted to microsoft.public.outlook.program_forms
chrisl
external usenet poster
 
Posts: 4
Default Creating mailitem with reply/reply to all/forward buttons

This is the problem. There doesn't seem to be a method that does this that I
can find and there doesn't seem any obvious way of setting a property on the
mail object to get it into a reply mode.

"Hollis Paul" wrote:

In article ,
=?Utf-8?B?Y2hyaXNs?= wrote:
I can't seem to find anywhere how I force the mailitem to natively
understand the mail is to be displayed in a response mode and not a new item
mode.

CreateItemfromTemplate should always create the item to send. I think what you
want to do is just open the existing item. Look for a method that opens the
item from the file system.

--
Hollis Paul
Mukilteo, WA USA



  #4  
Old June 22nd 07, 12:55 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Creating mailitem with reply/reply to all/forward buttons

You should be able to execute any file that has a file type association by using Windows Script Host:

You can use Windows Script Host to run any program:

Set objShell = CreateObject("WScript.Shell")
strPath = Chr(34) & "C:\your path\your file.msg" & Chr(34)
objShell.Run strPath

Once the item is open, it will be available from the Inspectors collection.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"chrisl" wrote in message ...
Hi,

I have an application that reads a .msg file from disk and uses an Outlook
object to create the outlook instance and a mailitem using the
CreateItemFromTemplate method on the application object.

When I execute the Display(object modal) method on the mailitem the form
displays the mail message as a new item with the Send button.

As the .msg file is actually a saved mail from a received email in an
outlook folder I need it to recognise it as a mail that has to show the
Reply/Reply to All/Forwad buttons (as it does if I double click the file on
the disk).

I can't seem to find anywhere how I force the mailitem to natively
understand the mail is to be displayed in a response mode and not a new item
mode.

Any help is appreciated.

 




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
Reply, Reply to All and Forward buttons are grey (can't use) Vic Outlook - Installation 0 May 25th 07 04:45 AM
Is Reply All or Forward the Way to Go? Richard Outlook and VBA 6 March 3rd 07 12:37 AM
Reply and Forward Clifford Outlook Express 3 February 1st 07 08:28 PM
Get parent message (original) from the response created by Reply-All/Reply/Forward Sanjay Add-ins for Outlook 3 November 9th 06 06:02 PM
Buttons not available incl New, Reply & Fwd. Mail comes in OK Coz Noleon Outlook - Installation 1 May 13th 06 05:32 AM


All times are GMT +1. The time now is 05:30 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-2025 Outlook Banter.
The comments are property of their posters.