I would like to restrict emails which have recipients outside our organization using my domain.
Is there a way to restrict emails using NOT LIKE condition?
I am using the Outlook Table approach as below
strFilter = "@SQL=" & " urn:schemas:httpmail:ToEmailAddress" & " Not Like '%DomainName%'"
OR "urn:schemas:httpmail:CCEmailAddress" & " Not Like '%DomainName%'"
OR "urn:schemas:httpmail:SenderEmailAddress" & " Not Like '%DomainName%'"