rbv_api.getMailMessage()
Removal in Platform v6.13.3.0. Starting with this version, this API is no longer available. Update scripts that call it before upgrading. No direct server-side replacement is available. See Deprecated and Removed Features.
Purpose
Returns the specified number of email messages from the INBOX folder of the logged in user.
Syntax
rbv_api.getMailMessage(msgNo)
Parameters
msgNo
The number of email messages.
Return value
Object representing message. The following properties are available:
to: address “to”cc: address “CC”from: name of sender if available, else, address “from”fromEmail: address "from"subject: subject of email messagebody: body of email message as HTMLtext: body of email message as plain textdate: date and time of email message as plain text
Example
rbv_api.openPOP3("mail.mydomain.com", 995, "address@mydomain.com", password, null);
var m = rbv_api.getMailMessage(100);
var x = m.get("subject");
rbv_api.closeMailSession();