The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Ubuntu
.
google unix.com




Thread: mailx
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-05-2005
mike509123 mike509123 is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 4
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.