PortNumber Property


IMAP4 port number. Default value is 143.

Note: Usually you do not need to change IMAP4 port number. However, if you do, set this value BEFORE calling Connect method.


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
Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mailserver.com"
Mailer.PortNumber = 1234 ' If  mailserver.com operates on non-standard port
Mailer.UserName = "MyName"
Mailer.Password = "MyPassword"
If Mailer.Connect Then
  MsgBox "Connected successfully"
  Mailer.Disconnect
End If

See Also:

UserName Property
Password Property
ServerName Property

Connect Method


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