Smtp.SendCommandAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9119)
SendCommandAsync(String, Object)
Begins asynchronous SendCommand operation. Executes a command on the SMTP server.
Declaration
public Task SendCommandAsync(string command, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | command | Command (e.g. "HELP"). |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
Must be followed by a call to ReadResponse method.
Use ReadResponse and SendCommand to implement various custom commands.