如何使用邮件命令将文件内容嵌入电子邮件的正文中?
我有需要,需要将文件内容作为邮件正文发送。我们可以通过Unix脚本点点。
提前致谢
I have requirement,where i need to send file content as mail body.can we dot through unix scripting.
Thanks in Advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用数据创建一个HTML文件。然后以电子邮件作为内容发送该文件。
使用表达式这样创建您的文件数据 -
使用聚合器将所有这些数据限制为一行。团体无。
然后使用另一个表达式转换。
创建这样的端口 -
然后使用此输出并连接到平面文件目标。
然后发送此平面文件Sing MailX命令/任何邮件客户端。
输出应该看起来像这样。

HTML文件应该看起来像这样
With the data create a html file. And then send that file in email as content.
use an expression to create your file data like this -
Use an aggregator to concat all these data into one single row. group by none.
Then use another expression transformation.
create a ports like this -
Then use this output and connect to a flat file target.
Then send this flat file sing mailx command/any mail client.
Output should look like this.

html file should looks like this