发送简单邮件
此代码将一条简单的纯文本电子邮件发送到 recipient@someaddress.com
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'The Profile Name',
@recipients = 'recipient@someaddress.com',
@body = 'This is a simple email sent from SQL Server.',
@subject = 'Simple email'