How to retrieve Reply-to email address using MailMessage.ReplyTo method?

studio
uipath
#1

Hello everyone!
I have an issue in retrieving reply-to email address from the System.Net.Mail.MailMessage object. If anyone tried to retrieve reply-to email address from MailMessages, please suggest me how to get that particular value. In my case I’m able to retrieve MailMessage.From.Address as string but unable to use “MailMesssage.ReplyTo.Address”. I’ve used Get IMAP mail messages and Get Outlook mail message activites to retrieve collection of mails. Any help is greatly appreciated.

Thank you,
Praveens02.

#2

Hi @praveens02,
You can use activity Get Outlook/Mail Messages and output it to the variable. Then get particular address from the message sender using < variable >(< Index of message >).From.ToString and put it to the new message.

1 Like