|
mailx
hi,
I am working on a ksh script and i want to be able to send a email using mailx.
if [[ "$testcase3" = "email1" ]] || [[ "$testcase3" = "email2" ]]
then
echo "send email"
mailx -s "Subject goes here" <email address>;
fi
thats what i have so far, in place of "<email address>" I have my actualy email address and I want to add a body with the text "body goes here". I have tried googling for this but didnt quite understand the results nor the man pages. Btw the code above doesnt even send an email with just a subject only, any ideas.
Any help would be appreciated.
|