Windows NT only Starts an Adaptive Server mail session.
xp_startmail [mail_user ] [, mail_password]
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.
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.
Starts an Adaptive Server mail session using the mail user name and password for Sybmail’s user account:
Starts an Adaptive Server mail session with “mailuser” as the profile name and the password associated with that profile name:
xp_startmail "mailuser", "tre55uu"
xp_startmail will not start an Adaptive Server mail session if one is already running.
An Adaptive Server mail session must be started, either by an explicit call to xp_startmail or by configuring Adaptive Server to start an Adaptive Server mail session automatically at start-up, before any Sybmail-related system ESPs or the sp_processmail stored procedure can be executed. See start mail session in the System Administration Guide for information about initiating an Adaptive Server mail session automatically at start-up.
When the Windows NT automail session is not on, you must use the mail_user and mail_password parameters with xp_startmail.
To see the default mail_user value from the fullname field for the “sybmail” user account, use the sp_displaylogin system procedure as follows:
By default, only a System Administrator can execute xp_startmail. A System Administrator can grant this permission to other users.