How we can automate outlook email without IMAP or POP?

I want to read the content automatically from Outlook email and save it in my data base. Once option is using IMAP , we can do it. But my request is without IMAP or POP is it possible to read and download the content from email.

Hi @Venkattesan_Du

You can use the Outlook activities to achieve this. Use the Get Outlook Mail Message activity to read the mails from Outlook.

Note: If you want to use Outlook activities, Outlook application has to be installed in your machine.

Hope it helps!!

1 Like

@Venkattesan_Du

  • Install Required Packages:
  • Go to Manage Packages.
  • Install UiPath.Mail.Activities.
  • Create Workflow:
  • Create a new sequence.
  • Read Emails from Outlook:
  • Drag and drop the Get Outlook Mail Messages activity.
  • Set the properties:
    • MailFolder: “Inbox”
    • Top: Specify the number of emails to read (e.g., 10).
    • Output: Create a variable (e.g., mailMessages).
  • Loop Through Emails:
  • Drag and drop a For Each activity.
  • Set the TypeArgument to System.Net.Mail.MailMessage.
  • Use mailMessages as the Items.
  • Extract Email Content:
  • Inside the For Each loop, extract the email content:
    • Use mail.Subject for the subject.
    • Use mail.Body for the body.
    • Use mail.From.Address for the sender.
1 Like

@Venkattesan_Du

Welcome to the community

  1. Outlook activities
  2. Office 365 activities
  3. If Gmail then those

Depending on your email type you have different ways

Cheers

Outlook works but I highly suggest the 365 activities (UiPath.MicrosoftOffice365.Activities). It makes things much simpler and straightforward because it connects directly to the mailbox without Outlook.