If you want to make UiPath send Gmail messages without turning your hair white then you are in the right place. This tutorial walks through package selection, authentication choices, and the actual send actions whether you prefer SMTP or the GSuite API. It is practical, slightly snarky, and technically correct.
In plain terms here is the flow you will build and test in your automation workflow:
Open Manage Packages and install either UiPath.GSuite or UiPath.Mail.Activities from the official feed. The GSuite package uses Google APIs and is better for enterprise OAuth setups. The Mail package uses SMTP and is fine for simple or legacy setups. Installing the correct package now saves you from mysterious runtime failures later and from yelling at your monitor.
Authentication is where most people trip up. For personal or low risk testing you can use an app password when two factor authentication is enabled. For production grade automation you want OAuth with a service account and the right API scopes if you use GSuite. Follow the Google Cloud console guides for creating credentials and delegate domain wide authority if needed.
Store secrets in Secure Credentials or Orchestrator assets so your robots are not hoarding passwords in plain text. Treat credentials like the fragile precious things they are.
Create a focused Sequence or Workflow that contains only email logic. That keeps sending separate from data processing and makes debugging much less tragic. Use arguments and variables so the workflow accepts dynamic To, Subject, Body, and Attachments values.
Use Send SMTP Mail Message when you want SMTP. Use GSuite Send Mail when you want the Google API. Configure From, To, Subject, Body and Attachments. If you need HTML emails set the IsBodyHtml property to true. Use the Attachments collection for multiple files and validate email addresses before sending to reduce bounces.
Example properties to wire up in UiPath:
To = recipientsVariable Subject = subjectVariable Body = bodyVariable IsBodyHtml = True or False Attachments = attachmentsCollection
When using SMTP ensure you have the right server, port and SSL settings for Gmail or GSuite SMTP relay. App passwords work here for simple accounts. Expect network related transient failures so design for retries.
The GSuite Send Mail activity calls Google's API which means OAuth scopes, consent and possibly domain wide delegation. This is more secure and scalable for enterprise RPA but requires setup in the Google console and a service account or OAuth client id. Store the JSON credentials in a secure place and reference them from your workflow.
Always start with a sandbox account. Surround the send action with Try Catch and log failures. Add retry logic for transient network errors and record the SMTP or API error messages in your logs so the next human can fix it without guessing. Good error handling converts flaky automation into something you can actually rely on.
Follow these steps and you will have a solid UiPath email automation that sends Gmail messages reliably. It covers package installation, authentication choices, workflow design, activity configuration and testing. You can automate now and blame the network later when it misbehaves.
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.