Skip to content

SmtpProtocolException with a new SmtpClient connection. #187

Description

@Didacuss

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions