Email Automation - IMAP

Hi Guys,

Requirement -
want to filter the condition based on the subject in IMAP mail Message.
Based on filter condition need to send an email to do that email ID.

for Ex:- Received an email from “flipkart”. My workflow should read the subject line and send an email to that DL with some info/attachment.

Is this required any code or can be done with an activity.


Welcome to uipath community
Yah this can be done with GET IMAP MAIL activity
And get the output named list_mails
—now use a FOR EACH activity and pass the above variable as input and change the type argument as System.Net.Mail.Mailamessage

—inside the loop use IF condition and mention like this
item.Subject.ToString.Contains(“your keyword”)
If true it will go to THEN part where we can use SEND SMTP MAIL activity to send the mail with body property mentioned with string to be passed

Cheers @Abhishek_sinha

Hi Palaniyappan,

Thanks, Its working fine now.
To do so have enabled gmail security -less secure apps for both sender and receiver side.

1 Like

Cheers @Abhishek_sinha

1 Like