Timeout Property


Specifies timeout value (the maximum amout of time to wait for response from SMTP server before returning an error) in seconds. Default is 30 sec.


Value Type: Long
Parameters: None 

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.SMTP")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.SMTP")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mailserver.com"
Mailer.Timeout = 60 ' 1 min
Mailer.Connect
If Mailer.Connected Then
  MsgBox "Connected successfully"
  Mailer.Disconnect
End If

See Also:

UserName Property
Password Property
AuthMethod Property
Connect Method


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