将图像嵌入使用SQL Server数据库邮件创建的电子邮件中 [英] Embed Images in emails created using SQL Server Database Mail
问题描述
我正在使用SQL Server中的电子邮件解决方案,将使用数据库邮件发送HTML格式的电子邮件。抓住的是,HTML中的图像需要嵌入到发送的电子邮件中。这不会是一个问题,如果我使用.net应用程序生成&发送电子邮件,但不幸的是,我所有的是SQL Server。
I'm working on an email solution in SQL Server ONLY that will use Database Mail to send out HTML formatted emails. The catch is that the images in the HTML need to be embedded in the outgoing email. This wouldn't be a problem if I were using a .net app to generate & send the emails but, unfortunately, all I have is SQL Server.
SQL Server是否可以嵌入图像?
Is it possible for SQL Server to embed images on its own?
推荐答案
是的,你需要做的是将图片作为附件,然后他们可以在HTML中引用。
Yes, what you need to do is include the images as attachments and then they can be referenced within the HTML.
使用 sp_send_dbmail
这篇关于将图像嵌入使用SQL Server数据库邮件创建的电子邮件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!