Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check recipients on send in Outlook

Status
Not open for further replies.

Crundy

Programmer
Jul 20, 2001
305
GB
Hello,
Does anyone know how I can catch the Send event in VBA for Outlook so I can do some checks on the recipients in the To field? C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
The send event is a standard application event in Outlook (and, unlike in Word and Excel, there's no need to set up an application class module to activate these events). Look up the info for:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

Rob
[flowerface]
 
Cheers.

Another problem though. Let me explain what I was trying to do:

I wanted to make it so that when I hit send, it will check the list of recipients against an array of addresses. If one or more of the recipients are found in the array, then it will disable digitally signing the email (because I have digital signatures on by default, and some people I send to cannot receive smime emails).

Someone said something about there being no way to change the signature / encryption settings of an email, is that true? C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
That's not an area in which I have expertise - we don't use digital signatures here. Hopefully someone else will chime in.
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top