通过 pentaho Spoon 电子邮件发送表格
在 Pentaho Spoon 中,我输入一个表并添加一些过滤器、常量和计算字段。 我的最后一步是通过电子邮件发送剩余的行。邮件功能为每一行发送一封单独的电子邮件 - 是否可以在电子邮件正文中发送整个表格。
In Pentaho spoon, I'm inputting a table and adding some filters, constants, and calculated fields.
My final step is to e-mail the remaining lines. The mail function sends a separate e-mail for each line - is it possible to send the entire table in the body of the e-mail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法在一次转换中完成此操作,Spoon 中转换的电子邮件步骤旨在针对每个输入行进行操作。
最简单的方法是结束转换,用您的数据生成一个文件,并创建一个作业来运行转换,然后继续发送电子邮件(使用作业操作)的作业,获取该文件并将数据作为附件发送。
如果您需要发送邮件正文中的行而不是作为附件,这个旧线程提供了不同的方法来实现它:使用 Pentaho 将 SQL 查询结果集发送到电子邮件 ID
You can't do it in one transformation, the email step for a transformation in Spoon is designed to operate for each input row.
The easiest way would be to end the transformation generating a file with your data and create a job to run the transformation and continue the job sending an email (using the job action) taking that file and sending the data as an attachment.
If you need to send the rows in the mail body and not as an attachment, this old thread offers different methods to achieve it: Send SQL query Result set to an email ID using Pentaho