Smtp.KeepAliveAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9119)
KeepAliveAsync(Object)
Begins asynchronous KeepAlive operation. Sends the NOOP command to the server to keep the connection alive.
Declaration
public Task KeepAliveAsync(object state = null)
Parameters
Type | Name | Description |
---|---|---|
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
Represents SMTP NOOP command.
Call this if you do not want the connection to the server to time out.
Some servers ignore NOOP command.