I’m sending an email via SMTP, if I try to send authenticated until the UiPath.Mail.Activities v1.9.5 version works, but if the version is higher than the UiPath.Mail.Activities v1.9.5 it gives an error, as shown below:
@kumar.varun2 can you please send me the error message you get?
@kumar.varun2@joao_adelio1 can you please give me the value you are using for parameters? For me it works fine in 1.10.5 when using Server = “smtp.office365.com”, and Port = 587, SecureConnection = Auto.
You need to use 1.9.6 or newer to get the activity working correctly when setting a value for SecurePassword parameter. If you have to use 1.9.5 then you should use Password field instead.
Sounds like your mail server doesn’t support secure authentication and so it sees the secure pwd as an incorrect pwd rather than decrypting it. Also could be a certificate issue.
I tested with versions 1.9.6, 1.10.4, 1.10.5 and 1.11.0-preview with both Password = “{my-password}” and SecurePassword = new System.Net.NetworkCredential(“”, “{my-password}”).SecurePassword. I used Server = “smtp.office365.com", Port = 587, SecureConnection = Auto.
==> All runs were successful, i.e. the email was successfully sent and received.
Note: the first execution failed with an authentication error but the reason was that I haven’t used my outlook.com account for a while so Microsoft blocked the access to my Inbox. But after I reviewed my activity and confirmed it was me initiating the call, everything worked fine.
With exactly same set-up(same VM, username, password, server, port) -
Send SMTP Mail Message activity works well up to package version 1.9.5.
since version 1.9.6 and higher (1.10.4,1.10.5) I’m getting error message: MailKit.Security.AuthenticationException: 535: 5.7.3 Authentication unsuccessful
** at UiPath.Mail.Activities.SendMailActivity.EndExecute**
Tested with various accounts, passwords as a plaint text or secure string - no help.
Seems to me like a bug in the newer versions of the UiPath.Mail.Activities package.
RemoteException wrapping System.Exception: 535: 5.7.3 Authentication unsuccessful
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.OutOfProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)