Send SMTP Mail Message Authentication unsuccessful


Can anyone help me understand why this error message?? where as if I keep my credentials hard-coded in the activity then its working fine but when using the same via Get Credential its giving me this error.

Send SMTP Mail Message: 535: 5.7.3 Authentication unsuccessful [BM1PR01CA0152.INDPRD01.PROD.OUTLOOK.COM]

P.S - I can read email with using the Get credential.

@Pablito @loginerror @ovi


Check below for your reference

Hope this helps you


1 Like

@ksrinu070184 , thanks for the reply but unfortunately it’s not helpful.

Hi @indrajit.shah ,

Have you enabled less secure apps in your gmail account ?Kindly enable less secure apps then you will able to send the mails. use below link to enable.


I am not using Gmail

Hi @indrajit.shah

Which domain mail u are using ?

Its office365 and i am using the correct configuration as i tried the same SMTP configuration with credentials hard-coded in the code and it worked but for when passing the same from asset credential(user name and password only) and rest the configuration through variable, its not working.

Did u convert the password retrived from the asset to string ? @indrajit.shah

No, but I decrypted the password from the secure string and checked.