Hi, I have an exception in the version 1.0.15.0 and 1.0.16.0, when I try to use a new SmtpClient connection. I have no exception with 1.0.14.0 version.
Here there is the code:
using (var smtp = new MailKit.Net.Smtp.SmtpClient()) {
smtp.Connect("sendm.intra.cciaa.net", 25, false);
}
... and here there is the exception:
SmtpProtocolException: {"Unable to parse status code returned by the server."}
in MailKit.Net.Smtp.SmtpStream.ReadResponse(CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.SendCommand(String command, CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.SendEhlo(Boolean ehlo, CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.Ehlo(CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
in MailKit.MailService.Connect(String host, Int32 port, Boolean useSsl, CancellationToken cancellationToken)
in ConsoleApplication3.Program.Main(String[] args) in f:\Devstudio\Download\Dal Papa\ConsoleApplication3\ConsoleApplication3\Program.cs:riga 56
in System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
in System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
in System.Threading.ThreadHelper.ThreadStart_Context(Object state)
in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart()
Have you any idea about this?
Thanks in advance.
Regards.
Diego Paroiln.
Hi, I have an exception in the version 1.0.15.0 and 1.0.16.0, when I try to use a new SmtpClient connection. I have no exception with 1.0.14.0 version.
Here there is the code:
using (var smtp = new MailKit.Net.Smtp.SmtpClient()) {
smtp.Connect("sendm.intra.cciaa.net", 25, false);
}
... and here there is the exception:
SmtpProtocolException: {"Unable to parse status code returned by the server."}
in MailKit.Net.Smtp.SmtpStream.ReadResponse(CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.SendCommand(String command, CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.SendEhlo(Boolean ehlo, CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.Ehlo(CancellationToken cancellationToken)
in MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
in MailKit.MailService.Connect(String host, Int32 port, Boolean useSsl, CancellationToken cancellationToken)
in ConsoleApplication3.Program.Main(String[] args) in f:\Devstudio\Download\Dal Papa\ConsoleApplication3\ConsoleApplication3\Program.cs:riga 56
in System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
in System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
in System.Threading.ThreadHelper.ThreadStart_Context(Object state)
in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart()
Have you any idea about this?
Thanks in advance.
Regards.
Diego Paroiln.