SMTP_SendOption function

Call the SMTP_SendOption function to specify the current message options (like SendTo, Subject, From, Cc, BCc, etc...) that map directly to the internet mail message headers with the same name (RFC 822). This message can be sent using the SMTP_Send function.

Format:

Integer iRet = SMTP_SendOption(String SMTP_OptionName, String SMTP_OptionValue)

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