No, there is no BeforeAttachmentAdd event, nor does Outlook provide a hook
for its dialog. An alternative approach might be to evaluate all attachments
when the user sends the message.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Is there a way to prevent or cancel an attachment?
>
[quoted text clipped - 16 lines]
>
> ---jkb
Jeff Bienstadt - 31 Mar 2004 23:17 GMT
Thanks, Sue, for your prompt reply and your alternative suggestion.
Unfortunately, it's not what my customer wants.
Is it safe to delete the attachment while in the AttachmentAdd handler? Are
there any hoops I'd need to jump through to make that work?
Thanks again,
---jkb
> No, there is no BeforeAttachmentAdd event, nor does Outlook provide a hook
> for its dialog. An alternative approach might be to evaluate all attachments
[quoted text clipped - 22 lines]
> >
> > ---jkb
Sue Mosher [MVP-Outlook] - 01 Apr 2004 00:44 GMT
I don't know. Why don't you try it?

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Thanks, Sue, for your prompt reply and your alternative suggestion.
> Unfortunately, it's not what my customer wants.
[quoted text clipped - 37 lines]
> > >
> > > ---jkb
Have you considered trapping the send event so that you can check if the
attachment(s) meet your predefined criteria.
If they do not then remove before sending and if appropriate display a
dialogue to the user.
--
Regards
Graeme
=====================================
Websetters - home of the WS:Outlook AddIn
the only limits are those of vision...
www.websetters.co.uk
=====================================
> Is there a way to prevent or cancel an attachment?
>
[quoted text clipped - 16 lines]
>
> ---jkb
Graeme - 31 Mar 2004 23:38 GMT
Sorry, just received the response from Sue... apologises for duplicating
response ...
Regards
Graeme
=====================================
Websetters - home of the WS:Outlook AddIn
the only limits are those of vision...
www.websetters.co.uk
=====================================
> Have you considered trapping the send event so that you can check if the
> attachment(s) meet your predefined criteria.
[quoted text clipped - 33 lines]
> >
> > ---jkb