启动SQL Mail   xp_startmail @user,@password
终止SQL Mail   xp_stopmail
发送邮件       xp_sendmail @recioients,@message,@query, @attachments,@copy_recioients,@blind_copy_4ecipients,@subject,@type,@attach_results,@no_output,@no_header,@width,@separator,@echo_error,@set_user,@dbuse
读邮件         xp_readmail @msg_id,@type,@peek,@suppress_attach, @orginator,@subject,@message,@redipients,@cc_list,@bcc_list,@date_received,@unread,@attachments,@skip_bytes,@msg_length,@originator_address
顺序处理邮件信息  xp_findnextmsg @msg_id,@unread_only
删除已处理信息    xp_deletemail {'message_number'}
顺序处理邮件      sp_processmail @subject,@filetype,@separator, @user,@dbuse