If your inbox is a monster you are not proud of managing by hand welcome to automation therapy. This tutorial walks through using UiPath Studio and Mail activities to fetch IMAP messages with the Get IMAP Mail Messages activity and then filter process and archive those messages like a responsible digital adult.
Open UiPath Studio and make sure the UiPath.Mail.Activities package is installed. No magic plugin required just the package and decent credentials. Store credentials securely using Orchestrator assets or the Windows Credential Manager so you do not paste passwords into a workflow and cry later.
Server imap.gmail.com
Port 993
Secure True
User user@example.com
Password yourPassword
Those lines represent the connection properties you will feed into the Get IMAP Mail Messages activity or into an activity that wraps that configuration. Use proper secure storage for the user and password values.
Drag the Get IMAP Mail Messages activity into your workflow and point it to the account settings you just prepared. Set the Folder to Inbox or any subfolder you own. Use the Top property to limit how many messages the activity fetches per run. Turn on OnlyUnread if you want to pretend you never saw anything before.
Use a For Each activity to loop through the MailMessage objects returned by Get IMAP Mail Messages. Apply quick filters inside the loop by checking the Subject From or headers so you only touch messages that matter to your workflow.
When mail has attachments use the Save Attachments activity and point it to a path. Use a naming pattern with timestamps to avoid overwrites. Once saved pass attachments to OCR extraction or to downstream processes that extract tables or PDFs.
Mark processed messages as read or move them to an archive folder so your robot does not do the same job twice. For moving use the appropriate Mail activities for your protocol. Wrap network calls in Try Catch and add logs so the next human who looks at your process cries less.
This guide covered connecting to an IMAP server in UiPath using Mail activities fetching messages filtering by criteria handling attachments and adding basic error handling. Follow the steps and your workflow will read and process inbox mail with less supervision and more smug satisfaction.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.