Mandatory form...Is this possible?

  • Thread starter Thread starter PT21770
  • Start date Start date
P

PT21770

A basic question from a non-expert....I would like to create a form that is
mandatory whenever a user attempts to send mail to a specific address. To be
more specific...when a user composes an email to our helpdesk email address,
I'd like to force them to use a form with required fields so that our
helpdesk has the info they need.

Any replies are appreciated.
 
You would have to trap the Send event for every item being sent out and
check the MessageClass of the item if it's a mail item. If it isn't your
custom form MessageClass then you set the Cancel argument of the Send event
to True to cancel the send, probably putting up a message to use the correct
form.

The easiest way to do that would be to handle the Application.ItemSend event
to trap every single send from each mailbox.

If this code is to be deployed then using VBA macros for it is not robust or
recommended. The recommended method would be to write an Outlook COM addin
to do the work.
 
Back
Top