Skip to main content Skip to Ask Learn chat experience

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English

Note

Access to this page requires authorization. You can try signing in or changing directories.

Access to this page requires authorization. You can try changing directories.

In this article

Database Mail and SQL Mail Stored Procedures (Transact-SQL)

Microsoft SQL Server supports the following system stored procedures that are used to perform e-mail operations from within an instance of SQL Server.

Database Mail Procedures

sp_send_dbmail

sysmail_help_configure_sp

sysmail_add_account_sp

sysmail_help_principalprofile_sp

sysmail_add_principalprofile_sp

sysmail_help_profile_sp

sysmail_add_profile_sp

sysmail_help_profileaccount_sp

sysmail_add_profileaccount_sp

sysmail_help_queue_sp

sysmail_configure_sp

sysmail_help_status_sp

sysmail_delete_account_sp

sysmail_start_sp

sysmail_delete_log_sp

sysmail_stop_sp

sysmail_delete_mailitems_sp

sysmail_update_account_sp

sysmail_delete_principalprofile_sp

sysmail_update_principalprofile_sp

sysmail_delete_profile_sp

sysmail_update_profile_sp

sysmail_delete_profileaccount_sp

sysmail_update_profileaccount_sp

sysmail_help_account_sp

 

SQL Mail Procedures

sp_processmail

xp_sendmail

xp_deletemail

xp_startmail

xp_findnextmsg

xp_stopmail

xp_readmail

 

See Also

Concepts

Database Mail

SQL Mail

SQL Server Agent Mail

Other Resources

Database Mail Configuration Wizard


Additional resources


  • Last updated on 2012-10-04

In this article

en-us
Your Privacy Choices
  • AI Disclaimer
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Consumer Health Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2026