OutSystems: How to read emails from Gmail via RichMail.Pop3GetMails?

OutSystems is a low-code platform to visually develop your application; there's very minimum coding done, and/but it's really helpful and comes in handy when you need to develop an application in short period of time. If you're interested in this, please refer to their official website for more details (OutSystems Official Website).

I'm going to skip to the part where we need to read emails from Gmail (I'll assume you have some basic experiences in OutSystems). In OutSystems, they provided the capability to read emails by using RichMail extension. It's really easy and straightforward compared to doing it via coding (don't blame me, i'm spoilt with what OutSystems can offer). 😂

Step 1: Click "Manage Dependencies" (plug icon)

Step 2: Search for "RichMail" & "Pop3GetMails" and checked the "Pop3GetMails". Click OK.

Step 3: Drag "Run Server Action" (orange dot) in between Start and End. In "Select Action" modal dialog, search for "Pop3GetMails" and click OK.

Step 4: Enter your Gmail details.
  • Server: imap.google.com
    • It depends on your email server. This is for google.
  • Username: lianaali.blogger@gmail.com
    • Enter the email address where you wanted to read emails from.
  • Password: testing123
    • Enter your email address password.
    • It's not really secured as it is stored as plain text and it's not encrypted (in OutSystems). Those who have access to this application/workspace will see the password.
  • Port: 995
    • It depends on your email server.
  • SecurityProtocol: Tls2
    • This also depends on your email server/setting.
  • MaxMails: 10
    • For Gmail, it actually read from "All Mail" instead of "Inbox"
    • So, MaxMails will read the first 10 emails from "All Mail".
  • JustHeader: True
    • If you select False, then you will get all the emails details (not just emails header).

Step 5: Click on "1-Click Publish" (green dot on top). You're all set.