How to send mail in uipath
UIPath provides a built-in activity called "Send Email" that allows you to send emails using various email protocols such as SMTP, IMAP, and POP3. Here's a step-by-step guide on how to send mail in UIPath:
Prerequisites:
- You need to have a valid email account with a provider that supports SMTP, IMAP, or POP3 protocols.
- You need to have the UIPath Studio installed and configured on your machine.
Step 1: Create a new workflow
- Open UIPath Studio and create a new workflow by clicking on "File" > "New" > "Workflow".
- Name your workflow and click "OK".
Step 2: Add the "Send Email" activity
- In the workflow designer, click on the "Activities" tab in the toolbox.
- Search for "Send Email" and drag-and-drop it onto the workflow designer.
Step 3: Configure the "Send Email" activity
- Double-click on the "Send Email" activity to open its properties.
- In the "Send Email" activity, you need to configure the following settings:
- Server: Enter the name of your email server (e.g., outlook.office365.com).
- Port: Enter the port number used by your email server (e.g., 587 for SMTP).
- Username: Enter your email address.
- Password: Enter your email password.
- From: Enter the sender's email address.
- To: Enter the recipient's email address.
- Subject: Enter the subject of the email.
- Body: Enter the body of the email.
- You can also add attachments to the email by clicking on the "Attachments" button and selecting the files you want to attach.
Step 4: Run the workflow
- Click on the "Run" button to execute the workflow.
- The "Send Email" activity will send the email using the configured settings.
Tips and Variations:
- You can use variables to store the email settings and use them in the "Send Email" activity.
- You can also use the "Send Email" activity to send emails using other protocols such as IMAP or POP3.
- You can use the "Send Email" activity in combination with other activities, such as "Read Excel File" or "Write Text File", to automate more complex workflows.