We send mail from two different modules. One is while configuration/setup and another is when you select the file and send mail to addresses.
Configuration is success. But actual send mail is failing.
wireshark network trace says:
93 34.113000 IPADDRESS1 IPADDRESS2 SMTP 100 [TCP Spurious Retransmission] S: 354 Start mail input; end with .
Actual exception:
2017-08-31 17:01:38 ERROR Smtp(4) Info: Rebex.Net.SmtpException: An existing connection was forcibly closed by the remote host ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at Rebex.Net.ProxySocket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at Rebex.Net.SmtpSocket.Receive()
at Rebex.Net.SmtpSocket.ReadLine(String& response)
at Rebex.Net.SmtpSocket.Read()
at Rebex.Net.Smtp.ReadResponse(Int32 success, Boolean blocking)
at Rebex.Net.Smtp.SendData(StuffingStream ss)
at Rebex.Net.Smtp.SendPipelining(Boolean chunking, String[] to, StuffingStream ss, String rcptToParameters)
at Rebex.Net.Smtp.SendInternalInner(String from, String[] to, String envelopeID, Stream message)
at Rebex.Net.Smtp.SendInternal(MimeMessage mail, Stream input, MailAddress sender, MailAddressCollection to)
at Rebex.Net.Smtp.Send(MailMessage mail, String sender, String recipients)
at Rebex.Net.Smtp.Send(MailMessage mail)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess, StackCrawlMark& stackMark)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Rebex.Net.RebexAsyncResult.Runner()
at Rebex.Net.RebexAsyncResult.SimpleThreadPool.Runner()
at Rebex.Net.Smtp.ReadResponse(Int32 success, Boolean blocking)
at Rebex.Net.Smtp.SendData(StuffingStream ss)
at Rebex.Net.Smtp.SendPipelining(Boolean chunking, String[] to, StuffingStream ss, String rcptToParameters)
at Rebex.Net.Smtp.SendInternalInner(String from, String[] to, String envelopeID, Stream message)
at Rebex.Net.Smtp.SendInternal(MimeMessage mail, Stream input, MailAddress sender, MailAddressCollection to)
at Rebex.Net.Smtp.Send(MailMessage mail, String sender, String recipients)
at Rebex.Net.Smtp.Send(MailMessage mail)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess, StackCrawlMark& stackMark)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Rebex.Net.RebexAsyncResult.Runner()
at Rebex.Net.RebexAsyncResult.SimpleThreadPool.Runner()