UserName Property


The name of the user account on the POP3 server.

Usually this is the first part of the email address (e.g. "bill" for "bill@host.com"). Sometimes, however, it can be full email address or something else (it depends on POP3 account settings).

This can be left an empty string if you're using Integrated Windows Authentication. See AuthMethod property for details.

Note: This value (if not specified in Connect method parameters) must be set BEFORE calling Connect method.


Value Type: String
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 = "pop.host.com"
Mailer.UserName = "bill"
Mailer.Password = "bill's password"
Mailer.Connect ' Connect to bill@host.com account
If Mailer.Connected Then
  MsgBox "Connected successfully"
  Mailer.Disconnect
End If

See Also:

Password Property
AuthMethod Property
ServerName Property
Connect Method


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