[英]Shell script to send email is not working from Informatica
I have a very simple script我有一个非常简单的脚本
echo "Test email body" | mailx -s "Subject" vinay@informatica.com
When I run the script from linux, it's working fine and I'm receiving the email当我从 linux 运行脚本时,它工作正常并且我收到了 email
But, when I use the same script in post session success command or command task in informatica, the script is successful but I did not receive the mail但是,当我在 session 成功命令或 informatica 中的命令任务中使用相同的脚本时,脚本成功但我没有收到邮件
Also, without calling the script, I directly gave the mail command in post session success command还有,没有调用脚本,我直接在post session success command中给了mail命令
echo "Test email body" | mailx -s "Subject" vinay@informatica.com
Still, it's not working.尽管如此,它还是行不通。
Can someone help me on this.有人可以帮我解决这个问题吗?
touch email.txt > you message
cat /tmp/email.txt
Subject: Terminal Email Send
Email Content line 1
Email Content line 2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.