Dart Smtp, Pop, Imap Controls
CommandEx Method
The command to send.
Where the reply from the server will be stored. A message would not be returned for this parameter when the Progress event fires, as that information would be available elsewhere.
True if a multiline reply is expected, otherwise False.
Description
Send any command to the server.
Syntax
Visual Basic
Public Sub CommandEx( _
   ByVal Command As String, _
   ByRef Reply As Variant, _
   ByVal Multiline As Boolean _
) 
Parameters
Command
The command to send.
Reply
Where the reply from the server will be stored. A message would not be returned for this parameter when the Progress event fires, as that information would be available elsewhere.
Multiline
True if a multiline reply is expected, otherwise False.
Remarks

This method is functionally equivalent to Command, but CommandEx can be used in a scripting environment.

Allows execution of standard and non-standard extension. The response from the server is copied to the Reply parameter, and you determine success or failure of the command.

You must correctly set Multiline for the command being sent. If a multiline response is specified, but not returned from the server, this method times out looking for a response termination sequence. If a Multiline reply is received but not specified, only the first line of the response returns.

Command should not include a trailing CR/LF.

Error Codes

This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):

See Also

Pop Object  | Pop Members


PowerTCP Mail for ActiveX Documentation Version 2.13
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic