Discuss this help topic in SecureBlackbox Forum

TElCommandSSLClient.SendCmd

TElCommandSSLClient     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Ues this method to send a text command to the server

Declaration

[C#/Java]
    short SendCmd(string Command, short[] AcceptCodes);

[VB.NET]
    Function SendCmd(ByVal Command As String, ByVal AcceptCodes As Short()) As Short

[Pascal]
    under development

[C++]
    int16_t SendCmd(const std::string &Command, const std::vector<int16_t> &AcceptCodes);

[PHP]
    integer SendCmd(string $Command, array of int16|NULL $AcceptCodes)

Parameters

  • Command - The command to sent
  • AcceptCodes - The set of acceptable response codes

Return value

    Returns the response code, sent by the server.

Description

    This method is used to send a text command in text command-response-based protocols such as SMTP. The set of acceptalbe response codes defines, which codes are allowed. If the response code, sent by the server, is acceptable, the method returns it. If the response code is not in the list, the exception is thrown.

See also:     LastReply property    

Discuss this help topic in SecureBlackbox Forum