We have an email automation process where we extract email information and create a PDF. Lately, we have encountered problems with some emails, as the “Email.Sender” and “Email.From” properties in the email object return null values, and the email sender’s address is missing from the email contact. Is there a workaround to fetch the email sender’s name when the email address is unavailable?
Note: We are using Get Outlook Mail Messages activity to fetch emails. We are avoiding the “Print Email As PDF” activity in UiPath due to timestamp formatting issues and prefer not to handle exceptions with try-catch. Instead, we need a way to retrieve the sender’s name when sender’s email is unavailable. Any suggestions?
Thank you for your response. We have attempted using “Email.From.Address.Tostring”, but since “Email.From” returns null, it results in an exception. Our challenge is that the email sender does not have a conventional email address like “Test@Test.com” in the image below. Instead, it has “Sender:This is a test email…” in the sender information. We need to fetch this information.
Email.From and Email.Sender are returning null and I cannot see any email address in the contact card. For this reason, we are looking to pull contact name instead of email address.
Oh, I always use the above method to get the sender address,
Here I need your help to clarify whether you want to get the sender’s address, or the email address in the body of a certain email?
If you look at the image below, it has the sender name “ABC Coaching” but it does not have an email address in the contact card so Email.Sender is running into “Null exception” and failing. Now I am trying to fetch ABC Coaching.
Thank you for the workaround. There is no email address in the email. I tried Email.Sender, Email.Sender.Address, Email.Sender.DisplayName. Sender is returning null so Email.Sender is not working. I even tried Email.From, that did not help as well.