vba - Outlook - check email address type -


I'm trying to create a macro in Outlook that will scan for a certain text string: a message If all one (or two, etc.) addresses are there an easy way to do this?

In fact, I am trying to write something that will avoid sending a restricted message to a group of people with the 'xyz' string in the address, if one or more of it is not autocomplete This makes it difficult without checking one through one.

This is possible using Outlook VBA.

You must write an event hook when the user sends email this application_ItemSend (as the biweek item in the form of the object, cancel in the form of boolean), where the item is being sent ( Email or appointment), and cancellation is a boolean that you can set to stop sending email.

In your code, you want to see the recipient collection on the item object, which is going to receive the email. For example:

  currRecip given as the recipient for each currRecip item. Debug if RecipeNet INSAT (1, CurrRec.Address, "Your Search Text Is Here", vbCompareText) Print "Message is Here .." End if Next CurrRecip  

Hope it helps ...


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -