UserDomain Property


The name of the user domain on the mail server to be used for ESMTP authentication during connecting.

This value can only be used with MS-specific authentication methods like NTLM and GSSAPI. The default value is an empty string (which is suitable in most cases).


Value Type: String
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 = "mail.company.com"
Mailer.UserDomain = "company.com"
Mailer.UserName = "MyName"
Mailer.Password = "MyPassword"
Mailer.AuthMethod = 4' Using NTLM authentication method
Mailer.Connect
If Mailer.Connected Then
  MsgBox "Connected using PLAIN authentication method"
  Mailer.Disconnect
End If

See Also:

Password Property
AuthMethod Property
ServerName Property
Connect Method


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