Automating sending email messages
In this section, we will learn about automating sending emails, where the robot will read the contents of an email in a Gmail account. We will be using SMTP to achieve this goal. Assume the email address and password are already passed as an argument within the workflow, and we are only focusing on the first five unread email messages, like our example in the previous Extracting email contents using Receive Messages section on reading emails. All you need is a Gmail account to send an email with an attachment, and another email configured in Outlook to receive the emails sent by UiPath Robot.
The following provides step-by-step instructions to send an email from UiPath Studio:
- Create a process
Create a new SMTPEmailMessages
process in UiPath Studio.
- Configure the Gmail password using Get Password
- Add a new activity, Get Password, to the workflow, as shown in Figure 12.27: