How to download attachment from gmail using UiPath

0 votes
Please tell me how can I loop through my gmail inbox and download all the attachments using UiPath?
Mar 11, 2019 in RPA by Hemant
8,492 views

3 answers to this question.

0 votes

Hey @Hemant, looping through emails and downloading the attachments in a good example of automation and it can be achieved using UiPath Studio. Following steps can automate this task:

1.  Create a new Sequence and drag Get POP3 Mail Messages activity. Then create email, password and mailList variables and assign your login credentials like mail_id and password to email and password variables.

2. Now go to the Properties of Get POP3 Mail Messages and set Port as 995, Server as "pop.gmail.com'. In Logon section enter your email and password variables. Also store output of this activity into mailList.

3. Next, add a ForEach activity to loop through the mailList. In Properties, set Type Argument as System.Net.Mail.MailMessage:
 


 

4. Inside ForEach, drag If activity to check whether the mail has an attachment or not

5. If the email contains an attachment, then use Save Attachment activity to save that attached file. 

Then simply go to the downloaded files folder and you can find all the attachments from your emails.

answered Mar 12, 2019 by Anvi
• 14,150 points
getting below error please advise:

Get POP3 Mail Messages: An error occurred while attempting to establish an SSL or TLS connection.

One possibility is that you are trying to connect to a port which does not support SSL/TLS.

The other possibility is that the SSL certificate presented by the server is not trusted by the system for one or more of the following reasons:
1. The server is using a self-signed certificate which cannot be verified.
2. The local system is missing a Root or Intermediate certificate needed to verify the server's certificate.
3. The certificate presented by the server is expired or invalid.

See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#InvalidSslCertificate for possible solutions.

Did you try if telnet is working?

Execute below command in command prompt

telnet <<Host_Name>> <>

See if your firewall is blocking it.

0 votes

First of all you need to setup POP3 and SMTP for your gmail, if it's done by you and you are still facing some issue, then do a fresh setup of POP3 and SMTP again, if you face any issues after that it could probably be due to gmail error 007

answered Sep 19, 2019 by Robert
• 140 points
1 flag
Your gmail error 007 link is broken.
0 votes

Download IMAP Attachment Extractor and smoothly extract all or desired attachments from multiple IMAP accounts. It extracts attachments from emails in bulk and without any trouble. You can download the Free Version of the software to understand it. this software runs on all Windows systems.

Visit here for more info: https://www.osttopstapp.com/imap-attachment-extractor.html 

answered Jun 29, 2020 by zoey
• 140 points

Related Questions In RPA

0 votes
1 answer

How to extract specific type of files from a directory using UiPath?

Hey @Avani, if you want to extract ...READ MORE

answered Mar 14, 2019 in RPA by Anvi
• 14,150 points
9,995 views
0 votes
1 answer

How to scrape data using Get Text from UI Automation tools in UiPath?

Hi Roshni, scraping any text from a web page ...READ MORE

answered Mar 20, 2019 in RPA by Pratibha
• 3,690 points
2,275 views
0 votes
1 answer

How to extract numbers from a web page using Uipath ?

Hi, you can simply use GetText and Message ...READ MORE

answered Aug 19, 2019 in RPA by Abha
• 28,140 points
2,359 views
0 votes
1 answer

How to scrap only numbers from a pdf file using UiPath studio?

Hi, to scrap only numbers from a ...READ MORE

answered Oct 17, 2019 in RPA by Abha
• 28,140 points
1,320 views
0 votes
1 answer

Receiving Emails from Gmail in UiPath

Hi, Integration of Gmail with UiPath can be ...READ MORE

answered Mar 16, 2019 in RPA by Mugdha
• 600 points
3,682 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,588 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
2,684 views
0 votes
1 answer

Surface automation in rpa?

Surface automation is a visual automation that is done using ...READ MORE

answered Apr 20, 2018 in RPA by wrecker
• 3,110 points
1,787 views
+3 votes
1 answer

How to extract data from a website and save it to excel using UiPath?

Hi Piyush, if you want to extract ...READ MORE

answered Mar 8, 2019 in RPA by Anvi
• 14,150 points
22,387 views
+1 vote
1 answer

How to send an attachment with an email using UiPath?

Hey Rashid, if you wish to send ...READ MORE

answered Mar 11, 2019 in RPA by Anvi
• 14,150 points
18,991 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP