Receive email configuration using Email connector module

0
Hello Team,   I need help to configure receive email functionality using email connector module. I have already implemented sent email functionality. I need some help for connection for receive email.   Regards, Prathamesh
asked
2 answers
4

Hello Prathamesh,,

try with retrieve email from Email connector module.

you will use the "Retrieve emails" action and then, within a loop, access each email's content using the Email Connector's properties (like subject, body, sender, etc.) and store it in object in your app. 

image.png

answered
0

 

Hi, Prathamesh Agare

 

I hope this will help you 

 

1. Use the IMAPConfiguration entity provided by Email Connector:Host: e.g. imap.gmail.com or your mail server.Port: Usually 993 for IMAP with SSL.Use SSL: truePassword: Encrypted using Encryption module (Call the Java action: `Encryption.DecryptString` or `EncryptString`)

2. Configure a Microflow to Fetch EmailsJava Action: EmailConnector.RetrieveEmailsParameters:IMAPConfiguration: The config you just createdNumber of Emails: (e.g. 10 or 20)FolderName: e.g., INBOX

3. Store and Display EmailsThe Java action will return a list of EmailMessage objects.

From there you can:Store them in a persistent entity.Show them in a ListView or DataGrid in the UI.

4. Set up Scheduled Event (Optional)To fetch emails periodically, use a Scheduled Event:Call the Microflow that uses RetrieveEmailsSet frequency (e.g., every 5 minutes)

answered