xp_readmail

(Windows only) Reads a message from the SAP ASE message inbox.

Syntax

xp_readmail [msg_id]
	[, recipients  output]
	[, sender  output]
	[, date_received  output]
	[, subject  output]
	[, cc  output]
	[, message  output]
	[, attachments  output]
	[, suppress_attach = {true | false}]
	[, peek = {true | false}]
	[, unread = {true | false}]
	[, msg_length  output]
	[, bytes_to_skip  [output]]
	[, type [output]]

Parameters

Examples

Usage

xp_readmail reads a message from the SAP ASE message inbox.

To get the message identifier of the next message in the message inbox, use xp_findnextmsg.

Permissions

By default, only a system administrator can execute xp_readmail. A system administrator can grant this permission to other users.

Related reference
xp_findnextmsg