-
-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SmtpProtocolException with a new SmtpClient connection. #187
Comments
Same error there .... I've rolled back to previous version and all worked fine. |
Can you guys get me a protocol log? Without it, this will be impossible to debug. |
nevermind, I can reproduce with gmail |
This work: smtp.Connect("sendm.intra.cciaa.net", 25, MailKit.Security.SecureSocketOptions.None); |
Just released 1.0.17 with the fix |
I am having this issue on 2.0 SmtpProtocolException: Unable to parse status code returned by the server. MailKit.Net.Smtp.SmtpStream+d__54.MoveNext() |
Can't solve the problem without a protocol log. |
This is the problem: client.Connect("mail.sistemaxtech.com", 110, MailKit.Security.SecureSocketOptions.Auto); You are connecting to a POP3 server using the SMTP client. That won't work. |
I am very sorry but I'm new on Mail Services so what should I do ? |
Try connecting to port 25 or 587... or 465 (SSL port) |
Thank you jstedfast I already fix it. Thanks! |
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.
The text was updated successfully, but these errors were encountered: