POP3_Read function

Call the POP3_Read function to read a message or read all messages from the server.

Format:

Read all messages:

Int iRet = POP3_Read();
Int iRet = POP3_Read(out string[] fromArray, out string[] subjectArray, out string[] dateArray, out string[] contentArray)

Read one message specified by id:

Int iRet = POP3_Read(Integer iMsgId);
Int iRet = POP3_Read(Integer iMsgId, out string from, out string subject, out string date, out string content)

Parameters:

Examples:

// Read the message id 1
String msg_from;
String msg_subject;
String msg_date;
String msg_content;
...
POP3_Connect("AgileLoadMailServer", 110, "[email protected]", "xxxx");
POP3_Read(1, msg_from, msg_subject, msg_date, msg_content);
POP3_Disconnect();

// Read all messages
String msg_from[];
String msg_subject[];
String msg_date[];
String msg_content[];
...
POP3_Connect("AgileLoadMailServer", 110, "[email protected]", "xxxx");
POP3_Read(msg_from, msg_subject, msg_date, msg_content);
POP3_Disconnect();

See also:





Go back to the Learning center:


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