Adaptive Server expects incoming e-mail messages to be in the form of Transact-SQL statements. Incoming mail can consist of a single statement or a batch of statements, delimited by an end-of-batch indicator.
Messages containing multiple statements must follow the rules for batches, as described in the Transact-SQL User’s Guide.
Sybmail provides ESPs to process incoming messages, including the following:
xp_findnextmsg
xp_readmail
xp_deletemail
These ESPs are briefly described below. For syntax and parameters, see the Reference Manual.