SMTP_Timeout function

Call the SMTP_Timeout function to specify a timeout period used by the SMTP functions. If the timeout expires and the SMTP function is not yet complete, the function fails with an error.

Format:

SMTP_Timeout(Integer Timeout)

Parameters:

Timeout

Integer representing the timeout period in seconds

Example:

SMTP_Timeout(60)     // set timeout period to 60 seconds
SMTP_Connect("AgileLoadMailServer", 25);
SMTP_SendOption("From", "[email protected]");
SMTP_SendOption("SendTo", "[email protected]");
SMTP_SendOption("Subject", "A first message");
SMTP_SendOption("Cc", "[email protected]");
SMTP_SendOption("Importance", "High");
SMTP_SendOption("Sensitivity", "Personnal");
SMTP_Send("Hello, this is a first message");
SMTP_Disconnect();

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap