Issues a command to SMTP server and reads response.

Namespace: Jscape.Email
Assembly: 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
String response = mySmtp.IssueCommand("QUIT");

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

See Also