我使用了格式化的sp_send_dbmail来发送HTML格式的电子邮件。但是它发送的邮件带有HTML代码。
以下是我使用的代码。
以下是我使用的代码。
EXEC msdb.dbo.sp_send_dbmail @recipients=N'*****@********.com',
@body= '<font color="green" face="arial"><i>
Testing<br /> </i></font><hr />',
@subject = 'SQL Server Trigger Mail',
@profile_name = 'DBMailProfile1'