bash mail subject variable code example
Example: bash mail subject variable
subj="hello from $(hostname -s) $(date)"
echo "data" | mail -s $subj mail@mail
subj="hello from $(hostname -s) $(date)"
echo "data" | mail -s $subj mail@mail