Zoomed Image

AMSX Scripting Language - Command : emailtotable

Summary

Download emails from a mail server into a temporary table

Description

Connects to a POP3 or IMAP mail server and downloads messages into a temp table for processing. Leave the from-date blank to only retrieve emails not previously downloaded into the same table. Supports POP, IMAP, or the built-in xAssetsPop method.

Parameters

ParameterDescription
cmdtemp table name to receive the email records
Argument 0mail server address
Argument 1email address / login username
Argument 2password
Argument 3use SSL (true/false)
Argument 4delete emails from server after downloading (true/false)
Argument 5date to download from (leave blank to download only new emails not yet in the table)
Argument 6port number (default 993)
Argument 7retrieval method: blank to use xAssetsPop, POP, or IMAP
Argument 8subject filter (not yet implemented)

Syntax


EmailToTable "temp table name to receive the email records", "mail server address", "email address / login username", "password", "use SSL (true/false)", "delete emails from server after downloading (true/false)", "date to download from (leave blank to download only new emails not yet in the table)", "port number (default 993)", "retrieval method: blank to use xAssetsPop, POP, or IMAP", "subject filter (not yet implemented)"

Return to the AMSX Command Reference