Item_Send Cancel

  • Thread starter Thread starter Rog
  • Start date Start date
R

Rog

While in the Item_send Event for an email,
I would like to be able to prevent the email from being sent.
any clues on how to do this without saving and deleting the item?
Thanks,
Rog
 
This is in an add-in? You should see in the Send event handler declaration that it supports a Cancel parameter. Set that to False to cancel the send:

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks Sue, yes it is an add-in. Do you mean set the Cancel to true?
I have done this and it seems the email still sends...
Any ideas?
Rog
 
Yes, I got the logic backwards. Set Cancel to True to cancel the send. If that doesn't work, show enough code to illustrate the problem. Your Outlook version might also be relevant.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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

Back
Top