Hello, recently I was working looping through each email from Gmail with search string. Now, I’m in a problem to reply to a particular mail. I’m not able to figure it out to define Reply To address.
I’ve defined each mail as ‘gmail’. To get To address as replyTo = gmail.From.Address as this is a string variable but activity accepts only Array.
Has anyone worked on this or any idea. Let’s crack this.
the recipients field in the Send Email activity in the Gmail Activites accepts only array!
Give it an array like this: {"test1@gmail.com","test2@gmail.com"}
hmmm, I understand. I’m not too familiar with the Gmail activities, but on first sight, I can’t see a good way to reply/forward an email.
Edit: What you can try to do, but this gets complicated fast, is:
Compose your default email body as HTML and use variables for placeholders
Grab the body of your email as HTML
Compose a new email body as HTML where you concatenate the email body you want to reply to with your default email body with values for placeholeders
You should now have an HTML body that looks like you are replying to that email. Adjust your subject like "Re: " + mail.Subject
Try various test emails and see if your concatenated email body works and looks like a reply
With regular mail activities like the Send SMTP Mail Message activity, there is a property called “Forward”, where you can use your current MailMessage object to reply to or forward it
Hello @lukasziebold, you are super. The only stuck was solving the To address. Now we can with UiPath GSuite - Gmail acitivity we can search for any specific mail by Sender, Subject etc. also can reply to that same mail chain. I’ll share the complete solution on Go!. Thank you.