answrtek 0 Newbie Poster

We are a very small company, using Outlook v.2000 through a web hosting
solution for our email. Email is setup to send and receive perfectly. We do
not have or even know how to use Exchange, and cannot afford it at any rate.
We have 10 or so computers, each with a stand alone version of Outlook v.2000
installed and users have a single email address to send / receive email from.
All computers are Win xp, fully patched.

For security and productivity purposes we want to limit the ability of a user
to send an email from Outlook (with or without attachments) to only those
email addresses that are listed in the contacts folder or ,alternatively we
would like to be able to specify a single domain name that you can send to
and restrict all others. Either approach would work for our purposes, however
the single domain approach would be best. (like @thisdomain.com) for some
users and the contacts better for others (based on position)

I've been able to accomplish a lot of things with Visual basic like this in
the past with almost every other Office application, (Access, Word, Excel,
PowerPoint) yet cannot seem to wrap my mind around how to accomplish this in
Outlook.

Every idea I've tried fails or just doesn't run, even if it compiles ok.
Rules don't seem to have this option and I haven't seen any 3rd party
affordable or even free software that can accomplish this. The only solutions
I seen are for Exchange administrators, and Like I said we do not have or use
Exchange.

To me, using VB Code it seems like I should be able to:

intercept the send command (i.e.- on the send button clicked etc)

compare the TO (and CC and BCC) recipient value in the email to the various
email addresses in the contacts folder (email1Address, email2Address, etc),
looping through all the contacts

and

allow it and send it if it matches (maybe even give a msgbox "Email matched,
send OK)

or

Disallow it if it doesn't (msg box "Sorry this message....etc) vbOkOnly etc
and not let it complete the send command

I'm at a loss. Can anybody help me with the VB code necessary to handle this
kind of event in Outlook? I've been googling and reading online posts for
three days and haven't seen anything that addresses this kind of need.

Seems simple, yet it is driving me a little goofy. Can anybody help me to write this?

Thankx in advance,

answrtek

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.