GetMessages

Description

Get multiple messages based on various parameters.

Syntax

trg.mail.GetMessages( path, subj, from, to, date_from, date_to )

path (input) - Path to the emails which you want to get

subj (input) - The subject line of the messages

from (input) - Who sent the messages

to (input) - Who the messages were addressed to

date_from (input) - Lower bound of a range of dates

date_to (input) - Upper bound of dates of messages

Return value

Returns the messages

Sample

'---------- Start ----------

Function Start

    if trg.mail.Connect("outlook") then

            trg.mail.GetMessages "support@simx.com/inbox", "Sample", "test@simx.com", "support@simx.com", "6/23/14", "7/14/15"

    else trg.Message "POP3 connection failed", true

    end if

End Function

See also

Platform Objects and Methods

target.mail.GetMessage()

target.mail.Move()

target.mail