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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Creating Accept/Reject sort of functionality on Mail Messages



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 5th 07, 12:38 PM posted to microsoft.public.outlook.program_addins
Mohit
external usenet poster
 
Posts: 6
Default Creating Accept/Reject sort of functionality on Mail Messages

Hi,

I wanted to create and program Accept/Reject (of Meeting Request
type) sort of buttons but these buttons will be on my HTML mail
messages. I mean when recipient opens my mail message he will be
presented with mail message body and at the bottom my buttons will be
there inside the mail Item.(This sort of functionality is common when
using Meeting Request Items. But I want this to work with Mail
Item.).

For this I am adding the necessary HTML button logic in the mail
item's HtmlBody.
On doing this buttons are appearing when my mail is opened but they
are not working.

On right click and going to view source option I am getting correct
logic there that i have inserted. And when this View Source Code is
runned in IE as a different html page it works!!! but not inside
Outlook environment. And I want it to work inside Outlook.

For information I am developing an Outlook Addin using VSTO 2005 SE
and Outlook 2003.

Help appreciated on how to achieve this.
Some other approaches other than using HtmlBody property is also
invited.
Thanks in advance.

Ads
  #2  
Old March 5th 07, 01:54 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Creating Accept/Reject sort of functionality on Mail Messages

Outlook doesn't run code in HTML message bodies, by default. This needs to be done with voting buttons, not HTML code, and will work only with Outlook recipients. Use the Options dialog to create whatever voting buttons you want, or to do it programmatically, use the Actions collection.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Mohit" wrote in message ups.com...
Hi,

I wanted to create and program Accept/Reject (of Meeting Request
type) sort of buttons but these buttons will be on my HTML mail
messages. I mean when recipient opens my mail message he will be
presented with mail message body and at the bottom my buttons will be
there inside the mail Item.(This sort of functionality is common when
using Meeting Request Items. But I want this to work with Mail
Item.).

For this I am adding the necessary HTML button logic in the mail
item's HtmlBody.
On doing this buttons are appearing when my mail is opened but they
are not working.

On right click and going to view source option I am getting correct
logic there that i have inserted. And when this View Source Code is
runned in IE as a different html page it works!!! but not inside
Outlook environment. And I want it to work inside Outlook.

For information I am developing an Outlook Addin using VSTO 2005 SE
and Outlook 2003.

Help appreciated on how to achieve this.
Some other approaches other than using HtmlBody property is also
invited.
Thanks in advance.

  #3  
Old March 6th 07, 12:07 PM posted to microsoft.public.outlook.program_addins
Mohit
external usenet poster
 
Posts: 6
Default Creating Accept/Reject sort of functionality on Mail Messages

Thanks for immediate reply.
Now I want to know that how can I perform my logic (say database
entry) to be executed on that button click.
I want to write routine like click event handling for that voting
button. How can I do that?

  #4  
Old March 6th 07, 12:39 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Creating Accept/Reject sort of functionality on Mail Messages

The event to use is MailItem.CustomAction, which fires when the user clicks a voting button and passes as parameters the Action and the response item that it creates.

Are you planning to install your addin on each recipient's machine?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Mohit" wrote in message ups.com...
Thanks for immediate reply.
Now I want to know that how can I perform my logic (say database
entry) to be executed on that button click.
I want to write routine like click event handling for that voting
button. How can I do that?

"Mohit" wrote in message ups.com...
Hi,

I wanted to create and program Accept/Reject (of Meeting Request
type) sort of buttons but these buttons will be on my HTML mail
messages. I mean when recipient opens my mail message he will be
presented with mail message body and at the bottom my buttons will be
there inside the mail Item.(This sort of functionality is common when
using Meeting Request Items. But I want this to work with Mail
Item.).

For this I am adding the necessary HTML button logic in the mail
item's HtmlBody.
On doing this buttons are appearing when my mail is opened but they
are not working.

On right click and going to view source option I am getting correct
logic there that i have inserted. And when this View Source Code is
runned in IE as a different html page it works!!! but not inside
Outlook environment. And I want it to work inside Outlook.

For information I am developing an Outlook Addin using VSTO 2005 SE
and Outlook 2003.


  #5  
Old March 8th 07, 07:09 AM posted to microsoft.public.outlook.program_addins
Mohit
external usenet poster
 
Posts: 6
Default Creating Accept/Reject sort of functionality on Mail Messages

CustomAction is working. Thanks again.
Yes I will install addin on each recipient's machine.

Now I have another problem that these voting buttons are not appearing
when the mail is opened to read. So how can I make it appear when the
mail Item containing it is opened. Is it so that I am missing
something?

Another point is when that mail is opened from my Sent items folder
the voting buttons are appearing and works as expected. But I also
want that when the voting button containing mail item is opened from
Sent Items folder it should not display the voting buttons(i.e. I
don't want them to work there). Voting buttons should appear only when
they are opened to read from the Inbox.

-Mohit

  #6  
Old May 7th 07, 02:43 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Creating Accept/Reject sort of functionality on Mail Messages

Sorry for the delayed response.

Now I have another problem that these voting buttons are not appearing
when the mail is opened to read. So how can I make it appear when the
mail Item containing it is opened. Is it so that I am missing
something?


Make sure the server isn't stripping TNEF content; see http://www.outlookcode.com/d/sendform.htm

Another point is when that mail is opened from my Sent items folder
the voting buttons are appearing and works as expected.


That's normal and expected.

But I also
want that when the voting button containing mail item is opened from
Sent Items folder it should not display the voting buttons(i.e. I
don't want them to work there). Voting buttons should appear only when
they are opened to read from the Inbox.


The only way I know to do that would be to put code in the Item_Open event handler to hide the Response toolbar.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

 




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
Creating macro that will sort emails into folders based on text in body mugginns Outlook and VBA 5 October 3rd 06 07:49 AM
Mail Server reject when I reply mail. Woody Kee Outlook - General Queries 2 May 18th 06 07:01 AM
outlook 2003 reject .mdb attachment xg Outlook - General Queries 2 May 10th 06 03:03 PM
can you please sort out my e--mail sylvia lane Outlook Express 1 April 4th 06 10:08 PM
Can I create a template with accept reject buttons for an idea? nunofarias Outlook - Using Forms 1 January 9th 06 07:05 PM


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