title: Bash script - sending email
body: <p>I'm trying to send an email from a bash script but when I run the script it completes without any errors but the email doesn't seem to be sending (it doesn't arrive in my inbox at least)</p>
  
  <pre><code>SUBJECT="SET-EMAIL-SUBJECT"
  EMAIL="me@address.co.uk"
  EMAILMESSAGE="/home/me/workspace/ss/UI/UI/legacy/Output.txt"
  echo "This is an email message test"&gt;$EMAILMESSAGE
  echo "This is a second line"&gt;&gt;$EMAILMESSAGE
  echo "This is a third line"&gt;&gt;$EMAILMESSAGE
  # send an email using /bin/mail
  `/bin/mail -s "$SUBJECT" "$EMAIL" &lt; $EMAILMESSAGE`
  </code></pre>
  
  <p>Thanks</p>