SendDelay Property


Gets or sets the delay in milliseconds between two successive requests to the IMAP server.

This is advanced property. Use it when working with certain slow IMAP4 servers which cannot handle commands from MailBee as fast as MailBee generates them.


Value Type: Long
Parameters: None 

Usage example:

Dim Mailer
' Using visual basic to create object
Set Mailer = CreateObject("MailBee.IMAP4")
' Using ASP to create object
' Set Mailer = Server.CreateObject("MailBee.IMAP4")
' In ASP use Response.Write instead of MsgBox

' Start logging of all the events. You may try to modify SendDelay value
' and compare times when commands are issued to mail server.
Mailer.EnableLogging = True
Mailer.LogFilePath = "C:\Temp\imap4_log.txt"
Mailer.ClearLog
Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mailserver.com"
Mailer.UserName = "MyName"
Mailer.Password = "MyPassword"
Mailer.SendDelay = 1000
If Mailer.Connect Then
  MsgBox "Connected successfully"
  Mailer.Disconnect
End If

See Also:

IMAP4 Object


Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.