需要使用SSIS脚本任务以HTML格式发送电子邮件 [英] Need To Send Email In HTML Format Using SSIS Script Task

查看:174
本文介绍了需要使用SSIS脚本任务以HTML格式发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


由于我对C#知之甚少,我正面临着 以HTML格式生成EMAIL很麻烦。

我的要求是 从AUDIT LOG表中获取最新的行,并使用SSIS和SCRIPT TASK以HTML格式的电子邮件发送。

在执行SQL任务中使用[msdb.dbo.sp_send_dbmail],我能够实现所需的电子邮件,但要求应该 使用SSIS SCRIPT TASK完成。



上述结果是使用执行SQL任务中的{ [msdb.dbo.sp_send_dbmail]}实现的>


任何帮助都将不胜感激。

谢谢你,b
Rahul


解决方案

参考如何从SSIS任务发送电子邮件


https ://www.mssqltips.com/sqlservertip/1753/sending-html-formatted-email-in-sql-server-using-the-ssis-script-task/


Hello Everyone,

As I have very less knowledge over C#,I am facing  lot of trouble in generating EMAIL in HTML format.
My requirement is  to get the latest row from the AUDIT LOG table and send it in HTML formatted email using SSIS and SCRIPT TASK.
Using [msdb.dbo.sp_send_dbmail] within Execute SQL task, I was able to achieve the desired email,But the requirement should  be completed using SSIS SCRIPT TASK.

The above result has been achieved using {[msdb.dbo.sp_send_dbmail] within Execute SQL task}

Any help would be appreciated.
Thank you,
Rahul

解决方案

refer how to send email from SSIS task

https://www.mssqltips.com/sqlservertip/1753/sending-html-formatted-email-in-sql-server-using-the-ssis-script-task/


这篇关于需要使用SSIS脚本任务以HTML格式发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆