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
343 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
• 22,870 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
62 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
394 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,520 points
1,690 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
• 12,840 points
2,472 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
211 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
313 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,011 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
449 views
0 votes
1 answer

How to install and configure Native Citrix on UiPath studio?

Hi Utkarsh, Native Citrix support enables you ...READ MORE

answered Mar 28 in RPA by Abha
• 22,870 points
502 views
0 votes
1 answer

How to install UiPath Orchestrator on an Azure App Service platform?

Hey @Jason, to install UiPath Orchestrator on ...READ MORE

answered Apr 2 in RPA by Abha
• 22,870 points
465 views