Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Problems with Send -- possible buffer overflow?
BobWaitz
bobw@mhccom.com

From: Burnsville, MN USA
Posts: 12
Member Since: 01/09/06
posted May 15, 2007 7:15 PM

Here is a short program sample requiring only a form, a button, a label and a reference to DartSMTP. It is supposed to send 150 emails really fast.

When I run this program on a slower Win2k box it runs fine. I can send about 1000 emails in 55 second on that machine. On any newer (faster) machine, the count gets up to about 100 then goes really slow until it gets a runtime error 11101 on message 121 or so.

If I do a login/logout around the send it works fine but only sends about 2 emails per second. If I login and log out every 20 emails, the faster machines complete the job. I'm trying to understand what's going on here so I can create a blocking class to send many emails quickly -- generally each will be different. Am I overflowing the send buffer? Is there a way, other than periodic logins and logouts to get the send to really send?

Thanks,

Bob



Private Sub Command1_Click()
  Dim ii As Integer
  Dim sMsg As String
  Dim dSmtp As New Smtp

  With dSmtp
    .Timeout = 10000
    .Login [SMTP SERVER HERE]
    For ii = 1 To 150
      lblProgress = Format(ii) & "/150"
      .Message.To.Clear
      .Message.To.Add [EMAIL ADDRESS]
      .Message.Subject = "Test email number " & Format(ii)
      .Message.AddText "The message text"
      .From = [EMAIL ADDRESS]
      .Send
     Next ii
     MsgBox "Done"
  End With
End Sub
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted February 4, 2008 4:43 PM

Hello Bob,

With regards to the query I would suggest you to try using the Trace method to create a log of the session. The sample shows how to create a trace log of the communication. After you get the error look at the last few lines of the log and see what the last response from the server was.

Have a great day.

Regards,
Arjun
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX