Reply-to is empty but is filled in outlook

Hello i have a problem i am using outlook activite and field for replyTo is empty:


But if i press reply button in outlook the filed is filled correctly.

Studio version: 2024.10.6
Mail activity 1.24.1

@tomaz,

You should be using Reply To Outlook Mail Message activity for replying to the email

I dont want to reply. I only want to read email addres that is set in reply_to

@tomaz , Are the emails forwarded or redirected?

Forwarded. But the reply to value is set correctly

If you look at the message source, what is the corresponding header for Reply-To?

there is none! Not a single header in UiPath is showing correct email address. I am also using both Get Outlook Mail Message and Get Email by ID, and none show this email correctly

I am afraid only one of those statements can be correct :wink:

“I am as surprised as you are. When I check the properties of this email in Outlook, the ‘Reply To’ is clearly defined. And in Outlook, the correct address is inserted in the reply. However, when I process the same email in UiPath, the ‘Reply To’ field is empty, as shown in the image below. My suspicion is that this is an issue on UiPath’s side.”

Please review the message source again in Outlook. The forwarding of the email may be messing up the headers. Is there a Reply-To header in the original incoming mail before it was forwarded?

The reply to field is set when email is being forwarded.

Are you able to post the source after sanitising the content?

mail_sanit.txt (8.7 KB)
@sudster do you need anything else?

@tomaz , I can see the Reply-To header on line 60.

Try doing a check for the header before assigning value, e.g:

Sorry, my example above is not for Outlook, but I think it would be similar.

UiPath just refuses to read this header.
It’reads only 11 headers, but Reply-To is not one of them.

Are you targeting the correct Message? I’m guessing the Messages itself is a collection?

Yes I’am targeting correct message. if you are willinf to provide me your email addres I can sand this mail directly to you.

I’ve done some digging; you are correct, no Reply-To header available in UiPath. I then tested a competing product and found the number of headers available is even less than what UiPath shows.

One thing to note, if you use Gmail/M365 connectors rather than Outlook, a large number of headers are available. You may be able to use one of those in place of Reply-To.

Another thing to test - If you have access to the mail server, try adding a custom header, like X-Reply-To, or something similar pre/post the forwarding step, to see what comes through.