-generaltimeout (-gt)
Previous Topic  Next Topic 

Category:

 

SMTP Server Communication

 

Description: 

 

Sets the general timeout while sending an individual message (in milliseconds). 

 

If the process of sending the message, including attachments, exceeds 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 -generaltimeout is set to 60000 ms (1m), and the sending operation 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:

 

-connectiontimeout -failsafe

 

Usage:

 

-generaltimeout <integer timeout value in milliseconds>

 

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

 

NetMailBot -generaltimeout 600000 -to email@domain.com -from email@domain.com -server mail.domain.com -subject "test" 

 

Comments:

 

None.