Mandatory form...Is this possible?

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top