New MailMessage () the .To doesn't work

Hello,

As the image shows, both varEmailToSend.Subject and varEmailToSend.Body are working and have been tested.

Now I need to the current row of the variable varRequesterMail to the “To:” of the email in order to send it, but I can’t, it doesn’t recognize .To as valid.

Can someone please help me?
Thank you!

Can you post the error message.?

Hello,

What is a type of varRequesterMail ?
You can’t assign string to varEmailToSend.To

image

Try invoke method

image

image

I didn’t test it but it’s a way you should go.