Get Outlook messages filter by email

outlook

#1

Hello, is it possible to only get messages sent from certain email address? I tried using filter
"[From]=‘certain@email.com’" but it works only when I type sender’s name and not email address.


#2

Hello,

This is what I have that may help you.
(From m in mailmsg where (m.Subject = “text”)).ToArray()
(From m in mailmsg where (m.Subject.Contains(filterString))).ToArray()
(From m in mailmsg where (m.From.DisplayName.Contains(“fromname”))).ToArray()

You can change the .Subject or .From to .From.Address (or whatever the syntax is on that) for what you need.

The examples above create an array of messages from within your “mailmsg” list you retrieved and stored to a variable from Outlook or Exchange.

Thanks!


#3

Try [senderemailaddress] = ‘certain@email.com’ "


#4

Hello cristian,

I tried your solution but it was not working. Can you help me to using [senderemailaddress] in properties window of Get outlook mail messages to filter list email by email address?

Thanks and Regards!