Issues a command to SMTP server and reads response.
Namespace: Jscape.EmailAssembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0
Syntax
C# |
---|
public string IssueCommand( string command ) |
Visual Basic |
---|
Public Function IssueCommand ( _ command As String _ ) As String |
Visual C++ |
---|
public: String^ IssueCommand( String^ command ) |
Parameters
- command
- Type: System..::..String
The command to issue.
Return Value
The SMTP server response.
Examples
This example issues the QUIT command.
CopySmtp IssueCommand
CopySmtp IssueCommand

String response = mySmtp.IssueCommand("QUIT");

Dim response As String = mySmtp.IssueCommand("QUIT")