Send SMTP Mail Message | Gmail Password | Error

Hi Team,

I am facing the following issue and would require your help in resolving it.

I am using Send SMTP Mail Message component to send Email using Gmail.

The activity works when the password is in String format and provided as input in Password property.

The activity does not work when password is stored in Asset and retrieved as SecureString and mapped to SecurePassword property.

I have also verified if the password received from Asset is correct using the following piece of code in Assign activity and then using WriteLine to print the value of Password variable.

string Password = new System.Net.NetworkCredential(string.Empty, SecurePasswordFromAsset).Password

The activity also works if I convert the SecureString retrieved from Asset to String and map it to Password property.

I have turned on less secure apps in Google account properties.

Any input here would be helpful.

Hi @JithinGangadharan

In smtp activitiy u had to pass the password as string only not as secure string string format

Regards

Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed:

there is an option secure string as well …u can pass secure string too

Hi Nived,

In UiPath.Mail.Activities v1.9.5, you have an option to pass password as both String and SecureString for Send SMTP Mail Message activity.

Passing password as String works fine but passing password as SecureString does not work for Send SMTP Mail Message activity.