title: "SMTP incoming data timeout" when sending email with inline images using Indy 10 in Windows XP
body: <p>I'm getting the error "SMTP incoming data timeout" when I try to send an email with inline images in Windows XP, I'm using the tiburon branch of Indy 10 with the following code to send emails with inline images:</p>
  
  <pre><code>   MB := TIdMessageBuilderHtml.Create;
      try
        MB.PlainText.Assign(Text);
        MB.Html.Assign(FHTML);
        MB.HtmlFiles.Add('c:\Path\to\My\Image.jpg');
        MB.FillMessage(IdMessage);
      finally
        MB.Free;
      end;
  
  
    if not IdSMTP.Connected then
      IdSMTP.Connect;
    IdSMTP.Send(IdMessage);
  </code></pre>
  
  <p>It just happens in Windows XP, in Windows Vista the email and the inline image are sent just fine.</p>
  
  <p>Apparently it isn't sending anything to the server, it appears to become stuck enconding the image before sending.</p>
  
  <p>Here is the call stack:</p>
  
  <pre><code> IdReplySMTP        497   +1 TIdReplySMTP.RaiseReplyError
   IdTCPConnection    574   +1 TIdTCPConnection.RaiseExceptionForLastCmdResult
   IdTCPConnection    724  +10 TIdTCPConnection.CheckResponse
   IdTCPConnection    563   +2 TIdTCPConnection.GetResponse
   IdTCPConnection    583   +4 TIdTCPConnection.SendCmd
   IdTCPConnection    696   +4 TIdTCPConnection.SendCmd
   IdSMTP             377   +2 TIdSMTP.DisconnectNotifyPeer
   IdTCPConnection    517   +5 TIdTCPConnection.Disconnect
   IdSMTP             476   +2 TIdSMTP.Disconnect
   IdTCPConnection    828   +2 TIdTCPConnection.Disconnect
   Email              130  +11 TEmail.Destroy
   System            9806   +1 TObject.Free
   EnviarEmail        322  +38 TFormEnviarEmail.Enviar
   System           12106  +38 @HandleFinally
                               RtlUnwind
   System           11589  +83 @HandleAnyException
                               KiUserExceptionDispatcher
                               RtlAppendUnicodeToString
   IdMessageClient    873   +4 EncodeAttachment
   IdMessageClient   1213 +252 TIdMessageClient.SendBody
   IdMessageClient   1244 +283 TIdMessageClient.SendBody
   IdMessageClient   1269  +12 TIdMessageClient.SendMsg
   IdSMTPBase         251   +6 TIdSMTPBase.SendNoPipelining
   IdSMTPBase         436   +4 TIdSMTPBase.InternalSend
   IdSMTPBase         457   +1 TIdSMTPBase.Send
   IdSMTP             415   +6 TIdSMTP.Send
   IdSMTPBase         449   +6 TIdSMTPBase.Send
  </code></pre>
  
  <p>Any clues about what is causing it and how can I solve the problem?</p>
  
  <p>Thanks.</p>