Hi Folks,
As per the subject, the following command is not working as expected.
echo $variable | mail -s "subject" "xxx@xxx.com"
Could anyone figure it out whats wrong with this. I am using AIX box.
Regards,
Hi Folks,
As per the subject, the following command is not working as expected.
echo $variable | mail -s "subject" "xxx@xxx.com"
Could anyone figure it out whats wrong with this. I am using AIX box.
Regards,
We don't know what you mean by 'not working', but as a guess put double quotes around $variable and try mailx
echo "$variable" | mailx -s "subject" "xxx@xxx.com"
try something like
echo "Subject: test" | /usr/lib/sendmail -v me@domain.com
you will see if mail is going out and where is sending problem