-connectiontimeout (-ct)
Previous Topic  Next Topic 

Category:

 

SMTP Server Communication

 

Description: 

 

Sets the connection timeout in milliseconds.

 

If the connection to the SMTP mail server takes longer than the specified time, NetMailBot will stop and return an %ERRORLEVEL% of 13. Use the parameter -failsafe to prevent NetMailBot from exiting and to retry indefinitely. For example, if -connectiontimeout is set to 5000 ms (5s), and the connection attempt times out, then use of -failsafe will cause NetMailBot to attempt the connection again without exiting with an %ERRORLEVEL% of 13.

 

Optional?

 

Yes.

 

Overrides:

 

None.

 

Overridden By:

 

None.

 

Other Parameters Required:

 

-to -from -server

 

See Also:

 

-generaltimeout -failsafe

 

Usage:

 

-connectiontimeout <integer number of milliseconds>

 

Example (cut-and-paste right into your batch file):

 

NetMailBot -connectiontimeout 60000 -to email@domain.com -from email@domain.com -server mail.domain.com -subject "test" 

 

Comments:

 

None.