ReplyTimeout Property

<< Click to Display Table of Contents >>

Navigation:  Reference > SmtpMail >

ReplyTimeout Property

 

ReplyTimeout specifies how many seconds AddEmail will wait for a reply from the outgoing mail server before returning timeout error.

 

Syntax

 

[Visual Basic]


objSmtpMail.ReplyTimeout = 20

 

[VBScript]


objSmtpMail.ReplyTimeout = 20

 

[C#]


objSmtpMail.ReplyTimeout = 20;

 

[C++]


HRESULT get_ReplyTimeout(LONG*);

HRESULT put_ReplyTimeout(LONG);

 

spSmtpMail->PutReplyTimeout(20);

 

 

Remarks

 

Default value of ReplyTimeout property is 30. To send an e-mail, AddEmail sends SMTP commands to the outgoing mail server specified in SmtpServer property. After each sent command AddEmail will wait up to ReplyTimeout seconds for a reply from the server. If the server does not respond within specified ReplyTimeout, connection to the server is terminated and timeout error is reported. You might want to set ReplyTimeout to 60-120 seconds if your outgoing mail server is slow and you get timeout errors with the default value.