ReadEmailsWithAttach method: MCFGetMail class
Syntax
ReadEmailsWithAttach(User, password, server, node, count)
Description
The ReadEmailsWithAttach method reads the number of emails specified by count for a particular user account. If attachments are associated with an email, this method reads the attachments as well.
Parameters
| Parameter | Description |
|---|---|
|
User |
Specify the user account that contains the emails you want to access, such as “support” or “john_doe”. |
|
password |
The password associated with the specified user name. |
|
server |
The name of the mail server handling the specified user account. |
|
node |
The Integration Broker node on which the request runs. |
|
count |
Specifies the number of emails to read. If count = 0, the method reads all the emails of the user account. If count > 0, the method reads the number specified. For example, if count = 10, the method reads 10 emails. |
Note:
If the value of any of these parameters is null, the method uses default values stored on the specified node. If the node is not specified, Integration Broker returns an error.
Returns
This method returns an email within a rowset. Level one of the rowset contains the email parts. Level zero row 1 only contains values for MCF_NUMROWS and MCF_RET_STATUS.
Example
import PT_MCF_MAIL:*;
Local MCFGetMail &gm;
Local Rowset &emails_rs;
&emails_rs = &gm.ReadEmailsWithAttach(&username, &passwd, &mailserver
&node, &email_count);
Related Topics