AuthMethod Property


MailBee.POP3 object can establish connection with the POP3 server using various authentication types.

Default setting is a regular authentication. All POP3 servers support it, but it is insecure. During regular authentication user password is sent to server in a plain-text form, so the password can be intercepted by a malicious person.

However, MailBee also supports secure authentication methods. All you need for using a secure connection is to set AuthMethod property value prior to connecting.

Also, MailBee supports Integrated Windows Authentication (IWA) so you can use any of NTLM or GSSAPI methods specifying empty username. In this case, MailBee will automatically obtain the current user credentials from the operating system. This is widely used with Microsoft services like MS Exchange Server or IIS.

AuthMethod property must be set BEFORE calling Connect method, otherwise it will not take effect.

The following authentication method are allowed:

Note: Particular POP3 server might not support secure authentication types.


Value Type: Long
Parameters: None 

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mailserver.com"
Mailer.UserName = "MyName"
Mailer.Password = "MyPassword"
Mailer.AuthMethod = 1 ' Using APOP secure authentication
Mailer.Connect
If Mailer.Connected Then
  MsgBox "Connected using APOP command"
  Mailer.Disconnect
End If

See Also:

Connect Method


Copyright 2002-2011, AfterLogic Corporation. All rights reserved.