UserName Property  

Gets and sets the user name or ID used to authenticate the session.


object.UserName [= value ]


The UserName property is used to authenticate the current session. If the message is being sent using SMTP, this property is used to specify a user name when connecting to the mail server . If no authentication is required, this property may be an empty string. Note that some service providers may use terminology other than "username" with their documentation; in that case, this property will always specify the first of a pair of authentication tokens sent to the server to identify the client.

Data Type


See Also

Password Property, ServerName Property, ServerPort Property, SendMessage Method