I can not use secure string for password on Send SMTP Mail Message activity

I use to Send SMTP Mail Message activity but i can not use secure string for passsword.
Password is credential information so we have to be able to use secure string.

I saw this topic but it does not seems to unsolve.

What solution i can take?

Hi @tomo007,

Use this line of code in the password field: New System.Net.NetworkCredential(String.Empty, YourPassword).Password.

Regard

Thanks you!
I tried it. However does it need to enter plain password?

Iā€™d like to avoid to enter plain password on activity.

@tomo007

Please use below code to use secure string as password :

new System.Net.NetworkCredential(string.Empty, SecureString).Password

Hope it will work for you!!

1 Like

@ParasTripathi
Thanks you for your information! I can send a mail with plain password.

1 Like

@tomo007

Yes, in place of above statement you can use password as String in plain text if you want!!
:grinning: :grinning:

Thanks & Regards,
Paras

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.