How do I find out if mail is delivered or not in Outlook?

Hello team,

I wanted to check whether the sent mail was delivered or not when it was sent from Outlook in UI Path.

@Davuluri_Manikumar

You can check the outbox if the mail is there and check sent items to see if it is sent

cheers

The seceniro is that I wanted to send 400+ emails every time. It’s not possible to go and check every time in the outbox or send items. Is there any other way to find out with UiPath?

  1. Use ‘Get Outlook Mail Messages’ Activity: Start by using the ‘Get Outlook Mail Messages’ activity in UiPath. This activity allows you to retrieve emails from a specified folder in Outlook. Set the folder to ‘Sent Items’ to access sent emails.
  2. Filter Emails by Date: Since you’re sending a large number of emails, filter them by the date they were sent. This can be done within the properties of the ‘Get Outlook Mail Messages’ activity.
  3. Loop Through Emails: Use a ‘For Each’ activity to loop through the retrieved emails.
  4. Check Delivery Receipts: If you have requested delivery receipts for your emails, you can check for these in the loop. Look for an email with a subject that indicates a delivery receipt (usually containing the original subject line) and from a system address.
  5. Mark Status: For each email, update its status (delivered or not) in a data structure like a DataTable or Excel sheet. You can use ‘Add Data Row’ or ‘Write Range’ activities for this.
  6. Exception Handling: Implement exception handling to manage cases where emails are not found, or other errors occur.
  7. Export Results: Finally, export the status of each email to an Excel file or any other format you prefer for easy review.

This solution will automate the checking process and make it feasible to handle a large number of emails without manually checking each one

1 Like

Hi Davuluri_Manikumar,
Here you have two possible options.
1. Assuming that you have access to the mailbox, you can just check sent messages or if for any reason the message was not sent then you need to check the outboox.
2. Keep the Send Outlook Mail Message Activity inside of a TryCatch Activity, so that doesnt throw into an exception then it will surely send the email.
Or
If it’s throw any exeption it will go to CATCH block where choose the exception as system.exception and then you can use another send outlook message activity to re-send the email.

NOTE: In the Send Outlook Mail Message Activity try to setup the TimeoutMS property to 100000 (Default value is 30000)

Cheers!

Hi @Davuluri_Manikumar -

This topic might help you for checking is the mail deliver or not