SMTP_AddAttachment function

Call the SMTP_AddAttachment function to add a file as an attachment. The SMTP_AddAttachment function must be called before calling SMTP_Send .

Format:

Integer iRet = SMTP_AddAttachment(String SMTP_FilePath)

Parameters:

Example:

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_AddAttachment("C:\\Temp\\MyDocument.pdf");
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