How to pass SecureString variable as String format variable in SMTP Mail


#1

Hi,

I want to pass my yahoo password which is getting from orchestrator into a secure string variable yahoopwd. but unable to pass this variable into String type input for smtp mail.

please suggest secureway.

Below screenshot working correctly but unable to pass yahoopwd variable to smtp password field.


#2

You solution lies here:


#3

Agree Nadim,

But is it secure?..because i can see my password…


#4

The smtp takes a string variable itself.

So, you assign to a string variable using the logic in thread and then use that assign in the smtp password.
Your assign you can keep Private enabled.


#5

ok…
Thanks…


#6

Do let me know if its what you need


#7

implemented correctly as per your suggestion.

Thanks Nadim…


#8

Hi.
I would highly recommend not using an Assign activity to store the securestring to a string, because it will be stored in memory or outputted while in debug. You can however, check the “Private” box on the Assign to hide it. I would recommend converting the securestring to string directly in the Password field of the Send SMTP (assuming it even requires a password which in many cases it might not depending on your company’s SMTP setup)

Regards.