Exact email address from undeliverable email


#1

Hi!

I have an email account that sends out automatic notices. It frequently gets several undeliverable emails from bad email address. I want to extract the email address from the body of the Undeliverable email (since it’s coming from Exchange, not a true sender’s email).

Thanks in advance! I’m a total UIPath n00b!

Sample below

Delivery has failed to these recipients or groups:

fakemail@gmail.com
The server has tried to deliver this message, without success, and has stopped trying. The recipient mail server may be temporarily offline or temporarily unable to accept messages. If the problem continues, contact your email admin.

The following organization rejected your message: alt4.gmail-smtp-in.l.google.com.

Diagnostic information for administrators:

Generating server: **************

fakemail@gmail.com
alt4.gmail-smtp-in.l.google.com
Remote Server returned ‘554 4.4.7 <alt4.gmail-smtp-in.l.google.com #4.4.7 SMTP; 452-4.2.2 The email account that you tried to reach is over quota. Please direct>’

Original message headers:


#2

Use Matches activity and provide regular expression matching the string you want to retrieve in the Pattern property.