adding more rules to 'different domains check' macro

Status
Not open for further replies.
Outlook version
Outlook 2007
Email Account
POP3
Hi all,

How do i create a macro that warns me if i send e-mails to different domains then mine, but only if there's an attachment to the mail?
In addition, how do i add to that macro a list of specific emails that for them that macro would not be triggered.

i used Diane's different domains check, but i wish to improve it.

thanx :)
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
you'll use an if statement - if item.attachments.count = 0 then exit sub near the top so it exists immediately if no attachments.

to skip a bunch of addresses, you'll need to check the recipients list and look for each address. This version - Warn Before Sending Messages to the Wrong Email Address (#cc bookmark) and the case statement from the one above should work.
 
Outlook version
Outlook 2007
Email Account
POP3
you'll use an if statement - if item.attachments.count = 0 then exit sub near the top so it exists immediately if no attachments.

I'm trying your solution step by step. :)

I added the if statement almost at the top, as you can see in the screenshot i attached here, but it is still checking for the domain of the of the recipient if there's a match with our domain. Did i put it in the wrong place?
 

Attachments

Status
Not open for further replies.
Top