PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Restrict mail to certain domains only.

Reply

Restrict mail to certain domains only.

 
Thread Tools Rate Thread
Old 07-07-2003, 03:06 PM   #1
Lance McGonigal
Guest
 
Posts: n/a
Default Restrict mail to certain domains only.


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


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off