SMTP send mail issue with secure password parameter

hi UiPathers,
when I try to use SMTP send mail activity providing Email as string and SecurePassword as secure string, the activity throws the following error:

[Activity DisplayName]: Value cannot be null.
Parameter name: password

providing the Password param as string, it works even if both Password and SecurePassword are filled in
it looks like a bug, or maybe I’m doing something wrong
uipath studio version 2020.10.4-beta 1
thank you

Hi @dario.casubolo welcome to forum

The password in smtp mail message activity should be provided as string format only.
Nived N

Happy Automation

Assign this to a string:

new System.Net.NetworkCredential(string.Empty, securePassword).Password
1 Like

Just for the record, the activity now supports secure strings as well.