How to filter emails based on sender's email addresses?

0 votes
I want to filter emails from my inbox based on sender's email addresses. Can I automate this task using UIPath?
Mar 11 in RPA by Avantika
549 views

1 answer to this question.

0 votes

Hi Avantika, you can automate the filtering of your emails based on email ids using UiPath. Follow the below mentioned steps one by one in UiPath:

1. Create a Sequence and add 'Get IMAP Mail Messages'. Then create email, password and mailMessages variables. Set your email and password for accessing your inbox. Set mailMessages type as List<System.Net.Mail.MailMessage>.

2. Now in Properties, set the Port as 993 and Server as "imap.gmail.com". Also enter email and password into Logon section.

3. Set the count of mails you want to filter in Top property. Uncheck OnlyUnreadMessages option to filter emails from already read mails.

4. Now in sequence, drag ForEach activity and iterate over mailMessages list. Inside foreach, add If activity to check each mail's sender email address using mail.From.Address.Contains(""). If the condition holds true, do whatever task you wish to do. For false condition, also define a task.

And that's it. You have filtered emails from your inbox.

answered Mar 11 by Abha
• 27,180 points

Related Questions In RPA

0 votes
1 answer

How to wait for an image to appear on a certain application?

Here are the steps that i performed: 1- ...READ MORE

answered Jul 27, 2018 in RPA by Atul
• 5,530 points
70 views
0 votes
1 answer

How to add filter to excel table in UI Path?

If you use *my value as the ...READ MORE

answered Aug 6, 2018 in RPA by wrecker
• 3,110 points
431 views
0 votes
1 answer

BluePrism: how to invoke javascript function when clicking on an HTML element?

Use a application modeller to spy the ...READ MORE

answered Oct 10, 2018 in RPA by Priyaj
• 56,900 points
2,040 views
0 votes
1 answer

How to send an attachment with an email using UiPath?

Hey Rashid, if you wish to send ...READ MORE

answered Mar 11 in RPA by Anvi
• 13,960 points
3,633 views
0 votes
0 answers

Getting e-mails from from mailbox in UiPath

I want to access all the unread ...READ MORE

Mar 5 in RPA by Akanksha
280 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
362 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,100 views
0 votes
1 answer

Surface automation in rpa?

Surface automation is a visual automation that is done using ...READ MORE

answered Apr 20, 2018 in RPA by wrecker
• 3,110 points
574 views
0 votes
1 answer

How to read data from a excel, based on that data, check in the corresponding checkbox in browser appln? Uipath

Hi, to achieve this, you can perform ...READ MORE

answered Oct 10 in RPA by Abha
• 27,180 points
52 views