Eメールの保存
USE MSDB GO EXEC sp_send_dbmail @profile_name = ' mail_pro ' 、 @recipients = ' [email protected] ' 、 @subject = ' テスト' 、 @body = ' 使用produreはmialテストを送りました'
DBメールの設定
実行
USE master GO sp_CONFIGURE 'show advanced', 1 GO RECONFIGURE GO sp_CONFIGURE 'Database Mail XPs', 1 GO RECONFIGURE GO
JOB属性中alert system中配置如下,不然job不会发送邮件。