SMTP_Connect function

Call the SMTP_Connect function to connects to the mail relay and sends the SMTP HELO command, thus preparing for sending messages. Any number of messages can later be sent using the SMTP_Send function.

Format:

Integer iRet = SMTP_Connect(String SMTP_ServerHost, Integer SMTP_ServerPort)

Parameters:

example:

if (SMTP_Connect("AgileLoadMailServer", 25) == 0)
exit;
EndIf

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