SmtpClient.Timeout Property


Gets or sets the maximum time interval(seconds) the object will wait for a response from server before returning an error.

[Visual Basic]
Public Property Timeout As Integer
[C#]
public int Timeout {get; set;}
[C++]
public: __property int get_Timeout();
public: __property void set_Timeout(int);
[JScript]
public function get Timeout() : int;
public function set Timeout(int);

Property Value

The maximum time interval(seconds) that the client will wait for a response from server before returning an error. Default value is 60.