Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

[E2010] [OWA] [C#] [Windows]: Intercepting send mail event in OWA

$
0
0
I have written an Outlook client VSTO 2010 add-in that collects security classification information (collated from a windows dialog asking for a couple of pieces of info) when the user sends an email.
The collated information is saved into an internet mail header and some of the information is visibly stamped on the mailitem before being sent.

I would like to provide that functionality within OWA too.

The OWA customisation articles on MSDN (http://msdn.microsoft.com/en-us/library/exchange/ee693018%28v=exchg.140%29.aspx) describe adding custom forms but as far as I can see I can't get a form to appear when the user presses send when composing a mail, therefore I can't see how I can collect extra information for a mail whilst writing it / before it gets sent.
And even if I could collect the information during the email compose stage, how could I validate existence if I can't intercept the send mail event.

I've ruled out an Outlook Message Classification approach (http://technet.microsoft.com/en-us/library/bb123498%28v=exchg.141%29.aspx) as this only collects a single piece of classification information. I need to collect more info and also allow the user to enter his own classification text.

The only idea I have left is to create a custom class and form derived from IPM.Note to mimic the regular compose mail page. When the user sends a mail - he will have to select my custom form instead of a normal message and I'll be able to collect the regular mail information plus the required classification information.
When the page posts back and hits my code on the server, I'd need to process the info, change to a regular mail item, add the internet mail header and perform visible updates and send the mail on it's way as if it were a normal mail.

I'm worried about there being something in there that is actually not feasible, and also the amount of work. I don't really know to what extent I can derive from IPM.Note - it may be that everything I do will have to be custom written.

Finally I worry that I won't be able to force the user into selecting my classification mail. I don't know if I can disable the existing "New Mail" option.

Any ideas on this or another approach?

Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>