Shell script to send email is not working from Informatica

348 views Asked by At

I have a very simple script

echo "Test email body" | mailx -s "Subject" [email protected]

When I run the script from linux, it's working fine and I'm receiving the 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

Also, without calling the script, I directly gave the mail command in post session success command

echo "Test email body" | mailx -s "Subject" [email protected]

Still, it's not working.

Can someone help me on this.

1

There are 1 answers

2
dark_77 On
touch email.txt > you message
cat /tmp/email.txt 

Subject: Terminal Email Send

Email Content line 1
Email Content line 2