SQL Send mail

Source: Internet
Author: User

First, enable the database Mail XPS feature.

To see if the Database Mail XPS feature is turned on, from the returned results, the value 0 description is not turned on, note that SQL Mail XPS is a Send mail feature that was provided by earlier versions of SQL Server, and now uses Database Mail XPS to implement sending mail.

Select Name,
Value
Description
Is_dynamic,
is_advanced
From Sys.configurations
Where name like '%mail% '

To start the database Mail XPS feature:

sp_configure ' show advanced options ', 1
Go
Reconfigure
Go

sp_configure ' Database Mail XPs ', 1
Go
Reconfigure
Go

After startup, the value of Database Mail XPS is 1

Ii. Configuring Database Mail

1. Open the Management directory, right-click Database Mail, and select the Configure Database Mail option:

2. Pop up the Database Mail Configuration Wizard and click Next:

3. Select the "Install Database Mail by performing the following tasks" option and click Next:

4, enter "Profile name", here I entered is: Db_mail, and then click on the right side of the "Add" button:

SQL Send mail

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.