Restrict mail to certain domains only.

  • Thread starter Lance McGonigal
  • Start date
L

Lance McGonigal

Hi all...Thanks in advance for your help.

Does anyone have any code to restrict email to certain domains. I get so
much junk that it's made my email almost unusable. I'd like some code that
checks for a domain. If it's not an "approved" domain then send it stright
to delete.

The process:

On receive check domain

If domain is = "mydomain.com" or domain is = "mydomain2.com" then
do nothing, it comes into my inbox
else
send to delete
end if

On close of outlook i'll dump the deleted items.

Thanks for your help.

Lance
 

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