Connect UiPath to Outlook Example |Video upload date:  · Duration: PT6M25S  · Language: EN

Quick practical guide to connect UiPath Studio with Outlook to read send and manage email using UiPath mail activities

If you want a robot to read send and manage Outlook email without crying in the corner of your inbox this guide shows how. You will add the UiPath mail activities confirm that Outlook is set up on the robot machine and use Get Outlook Mail Messages and Send Outlook Mail Message with basic error handling and best practices for Orchestrator deployments. This is practical Email Automation for RPA that actually works.

What you need before you start

Keep this short and painless. You will need UiPath Studio installed Outlook configured on the robot machine and access to UiPath.Mail.Activities via Package Manager. If you are deploying to Orchestrator plan a service account for unattended runs so no one has to babysit pop ups.

Step 1 Install mail activities

Open Package Manager in UiPath Studio and add the package named UiPath.Mail.Activities. That brings Outlook specific actions to your activities panel. Yes it feels like clicking a button to summon powers you did not deserve but did acquire.

Step 2 Confirm Outlook profile

Make sure Outlook is installed on the same machine the robot will use and that at least one mail profile is signed in and working. UiPath talks to the local Outlook client so there is no magic cloud handshake here. If you see authentication pop ups during testing consider using an unattended robot account or adjusting security policies with your IT team.

Step 3 Use Get Outlook Mail Messages

Drag the Get Outlook Mail Messages activity into a sequence. Set properties like MailFolder OnlyUnread and Top to limit what the robot pulls. Map the output to a variable such as List<MailMessage> or IEnumerable<System.Net.Mail.MailMessage>. The result is a collection of MailMessage objects you can loop over and process.

Quick filtering tips

  • Filter by folder or subject to reduce processing time and keep the robot from spawning an accidental mail apocalypse.
  • Use OnlyUnread to avoid reprocessing every item every run.
  • Use Top to test with a tiny sample first and scale up later.

Step 4 Use Send Outlook Mail Message

Use the Send Outlook Mail Message activity to supply recipients subject body and attachments. It uses the default Outlook profile so no extra SMTP config is required. You can toggle IsBodyHtml if you plan to send fancy formatted email or just plain awkward plain text as your soul desires.

Step 5 Handle errors and run

Wrap mail calls in a Try Catch and log meaningful errors. Test with a small inbox sample and watch the logs. If an authentication popup or security prompt appears during automated runs check local security policies or move the job to an unattended robot with a service account in Orchestrator.

Error handling checklist

  • Catch Smtp issues and Outlook COM exceptions and log enough context to debug later.
  • Save attachments to a temp folder before processing to avoid locking problems.
  • Throttle reads and writes if you hit mailbox rate limits or very large attachments.

Deployment notes for Orchestrator

When you deploy choose a service account and configure the robot to use that local profile to avoid interactive prompts. This makes the automation reliable and blissfully unbothered by human popup drama. Also ensure the machine and robot user have Outlook open at least once and that any security addons are configured for unattended access.

This guide covered installing Mail Activities confirming an Outlook profile using Get Outlook Mail Messages sending mail with Send Outlook Mail Message and adding basic error handling. Follow these steps and you will have a robot that handles routine email tasks while you enjoy coffee or pretend to do human work.

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.