Smtp Object : Login Method |
Visual Basic |
---|
Public Sub Login( _ ByVal Server As String, _ Optional ByVal RemotePort As Long = 0, _ Optional ByVal Username As String, _ Optional ByVal Password As String _ ) |
After a successful Login, the supported server extensions are listed in the Capabilities property and will be used when applicable. See the Capabilities property or the SMTP Protocol Overview section for more information regarding SMTP extensions.
See SMTP Control Event Sequencing for event information related to this method and SMTP Control Non-Blocking Sample for information on non-blocking operation.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):