This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13181|Reply: 1

[Source] Send emails using database sp_send_dbmail

[Copy link]
Posted on 1/16/2018 7:29:16 PM | | | |
First of all, the database needs to configure some information sent by email, the specific configuration method, let's go to the Internet to search, my configuration name is "my_mail", and the creation is successful as shown in the figure below:


Then, use the sp_send_dbmail stored procedure of the database to send the email, as shown in the figure below, our email is successfully sent!

The SQL script is as follows:




For other more complex sending methods, please refer to the following links:

SQL Server Sending Mail Using Databases (sp_send_dbmail)
http://www.itsvse.com/thread-4436-1-1.html
(Source: Architect)









Previous:SQL Server Sending Mail Using Databases (sp_send_dbmail)
Next:Server System Backup and Restore Tool (Remote Restore)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com