Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Starts an email session under MAPI.
xp_startmail( [ mail_user = mail-login-name [, mail_password = mail-password ] ] )
mail_user Use this LONG VARCHAR parameter to specify the MAPI login name. The default is NULL.
mail_password Use this LONG VARCHAR parameter to specify the MAPI password. The default is NULL.
This function returns an INTEGER status code.
See Return codes for MAPI and SMTP system procedures.
xp_startmail is a system procedure that starts an email session.
If you are using Microsoft Exchange, the mail-login-name argument is an Exchange profile name, and you should not include a password in the procedure call.
Not supported on Unix.
You must have the SEND EMAIL system privilege.