Executes a command on the SMTP server.

Namespace:  Rebex.Net
Assembly:  Rebex.Smtp (in Rebex.Smtp.dll)

Syntax

Visual Basic
Public Sub SendCommand ( _
	command As String _
)
C#
public void SendCommand(
	string command
)

Parameters

command
Type: System..::..String
Command (e.g. "HELP").

Remarks

Must be followed by a call to ReadResponse method.

Use ReadResponse and SendCommand to implement various custom commands.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also