Hey, i always get this error when i try to send an Mail with the Send SMTP Mail Message Activity.
What could be the problem? The server and the port should be correct.
can you please share the screen of the properties and error of that activity.
22.4.4+Branch.support-v22.4.Sha.1090422ff8ac244a830d9e33650f90eb9cddd56a
Source: Send SMTP Mail Message
Message: The SMTP server has unexpectedly disconnected.
Exception Type: MailKit.Net.Smtp.SmtpProtocolException
RemoteException wrapping MailKit.Net.Smtp.SmtpProtocolException: The SMTP server has unexpectedly disconnected.
at MailKit.Net.Smtp.SmtpStream.d__39.MoveNext() in D:\src\MailKit\MailKit\Net\Smtp\SmtpStream.cs:line 260
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MailKit.Net.Smtp.SmtpStream.d__46.MoveNext() in D:\src\MailKit\MailKit\Net\Smtp\SmtpStream.cs:line 456
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at MailKit.Net.Smtp.SmtpClient.d__100.MoveNext() in D:\src\MailKit\MailKit\Net\Smtp\SmtpClient.cs:line 1414
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Mail.MailServiceFactory.CreateMailKitService(EmailProtocol protocol, String server, Int32 port, UserSettings userSettings, SecureSocketOptions options, Int32 timeout, CancellationToken cancellationToken)
at UiPath.Mail.MimeMailService.SendSMTPMail(MimeMessage mimemessage, UserSettings userSettings, ServerSettings serverSettings, SecureSocketEncryption secureConnection, CancellationToken cancellationToken, Boolean authenticateFirst)
at UiPath.Mail.MimeMailService.SendSMTPMail(MailMessage mailMessage, UserSettings userSettings, Receiver receiver, ServerSettings serverSettings, SecureSocketEncryption secureConnection, List`1 attachments, CancellationToken ct, Boolean isNewMessage, String body)
at UiPath.Mail.SMTP.Activities.SendMail.<>c__DisplayClass52_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at UiPath.Mail.SMTP.Activities.SendMail.d__52.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Mail.Activities.Extensions.TaskExtensions.d__2.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Mail.Activities.SendMailActivity.d__43.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.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)
Hello @948d7686507086a195c85c72b
I doubt the configuration that you have provided is having some issues. Can you please share a screenshot of the property panel.
Thanks
Have you talked to your email admins?