ssis - 是否可以从 SSIS 中的数据流窗格发送邮件
问题描述
在 SSIS 中,我们可以使用数据流输出列发送电子邮件。如果满足条件,我想发送电子邮件。我想有可能吗?如果有可能,那么我们该怎么做呢?
如果有人知道,请告诉我..提前谢谢!
解决方案
正如@TabAlleman 提到的,唯一的方法是使用脚本组件。您可以参考以下链接以使用 C# 脚本发送电子邮件:
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add("luckyperson@online.microsoft.com");
message.Subject = "This is the Subject line";
message.From = new System.Net.Mail.MailAddress("From@online.microsoft.com");
message.Body = "This is the message body";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("yoursmtphost");
smtp.Send(message);
代码参考
类似问题
推荐阅读
- python - Jinja 模板,如何通过循环将 html 嵌套到容器中?
- python - 线性单细胞两层人工神经网络产生恒定预测
- server - Perforce Ghost 仓库
- django - django 2.1 celery 不执行异步任务
- database - 如何在 Unity 中设置云数据库?
- android - GridLayoutManager 是否已损坏且未在 RecyclerView-v7:28.0.0 中保留状态?- 发生了什么变化?
- ruby - 在 Ruby 中,我可以从实例方法中访问类实例变量吗?
- ruby - ruby 无法安装 gems,只能手动安装
- java - 浏览多个列表以查找相同的对象
- python - 使用 Python 覆盖 C 程序中的资源部分