I tried converting a secure string into a string using the .ToString method within the password field of the Send SMTP Activity. It doesn’t work.
I found another method suggested by a UiPath employee that is more secure than the method suggested by nadim.warsi.