首页 > 解决方案 > sp_send_dbmail 在电子邮件正文末尾附加(空)

问题描述

我正在使用 SQL Serversp_send_dbmail发送电子邮件通知(HTML 正文)。这是我的配置。

EXEC msdb.dbo.sp_send_dbmail        
     @recipients = @list,
     @copy_recipients = @ccList,
     @importance = 'NORMAL',
     @subject = @subject,
     @body = @body,
     @body_format = N'html',
     @profile_name = 'myProfile'

电子邮件按预期工作,但我在电子邮件正文的末尾收到 (null)。

Thanks, 
Project Team.

(null)

我还验证了我的 HTML 是否存在无效字符和图像。

标签: sql-servernullsp-send-dbmail

解决方案


推荐阅读