Hi,
I’m learning to send a simple email from an Outlook account via SMTP using UiPath Community Edition. Drag a Send SMTP Mail Message activity and set configuration on:
Port: 587
Server: “smtp-mail.outlook.com”
and it throwed an exception. Tried changing SecureConnection from Auto to “StartTls” and “StartTlsWhenAvaliable” but nothing worked. Any idea what went wrong? Thank you.
Workflow Exception is quoted below:
{WorkflowName} has thrown an exception
Source: Send SMTP Mail Message
Message: The SMTP server has unexpectedly disconnected.
Exception Type: SmtpProtocolExceptionMailKit.Net.Smtp.SmtpProtocolException: The SMTP server has unexpectedly disconnected.
at UiPath.Mail.Activities.SendMailActivity.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)