xp_startmail

Description

(Windows only) Starts an Adaptive Server mail session.

Syntax

xp_startmail [mail_user ] [, mail_password]

Parameters

mail_user

is a mail profile name used by Adaptive Server to log into the Windows NT mail system. If mail_user is not used, xp_startmail uses the mail user name that was used to set up Sybmail’s Adaptive Server account.

mail_password

is the mail password used by Adaptive Server to log into the Windows NT mail system. If mail_password is not used, xp_startmail uses the mail password that was used to set up Sybmail’s Adaptive Server account.

Examples

Example 1

Starts an Adaptive Server mail session using the mail user name and password for Sybmail’s user account:

xp_startmail

Example 2

Starts an Adaptive Server mail session with “mailuser” as the profile name and the password associated with that profile name:

xp_startmail "mailuser", "tre55uu"

Usage

Permissions

By default, only a System Administrator can execute xp_startmail. A System Administrator can grant this permission to other users.