SQL SERVER – Send Email From SQL Server – Configure Database Mail – SQL in Sixty Seconds #039 – Video

Configure Database Mail when SQL Server needs to send administrative notifications. Job failures, maintenance status and operator alerts are useful examples. SQL Server should not replace a dedicated bulk-mailing application.

Gouache painting of a small metal mailbox with one cream envelope and a vermilion flag.

In this SQL in Sixty Seconds video, I demonstrate the Database Mail configuration wizard. If you prefer written instructions and images, see Configure Database Mail: Send Email From SQL Database.

Before Configuring Database Mail

Database Mail sends through an SMTP server using an account and a mail profile. Use the SMTP settings and authentication method approved by your mail administrator. The 2013 video shows the wizard of its time; its example settings are not universal provider settings.

An authorized sysadmin configures accounts and profiles. A non-sysadmin sender needs membership in DatabaseMailUserRole in msdb and access to the chosen profile. Restrict access to the users who need it. SQL Server Agent notification settings must also be configured for job alerts.

Watch the Original Video

Original SQL in Sixty Seconds 60x60 clock badge

Related Tips

What would you like to see in the next SQL in Sixty Seconds video?

Database Mail is not a bulk-mailing system, it is a useful channel for operational notifications.

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.


Discover more from SQL Authority with Pinal Dave

Subscribe to get the latest posts sent to your email.

Database, SQL in Sixty Seconds, SQL Scripts, SQL Server Management Studio
Previous Post
SQL SERVER – Wrap SQL Code in SSMS – SQL in Sixty Seconds #038 – Video
Next Post
SQL SERVER – TRIM Function to Remove Leading and Trailing Spaces of String – SQL in Sixty Seconds #040 – Video

Related Posts

3 Comments. Leave new

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.