title: send simple email using unix shell command
body: <p>I am new to unix environment. Well, I just want to send an email using unix shell script. I do not know whether I have rights to do in my user role or not. This is script I tried to run it.</p>
  
  <pre><code>#!/bin/bash
  # script to send simple email
  # email subject
  SUBJECT="SET-EMAIL-SUBJECT"
  # Email To ?
  EMAIL="test@mail.com"
  # Email text/message
  EMAILMESSAGE="mail.txt"
  echo "This is an email message test"&gt; $EMAILMESSAGE
  echo "This is email text" &gt;&gt;$EMAILMESSAGE
  # send an email using /bin/mail
  /bin/mail -s "$SUBJECT" "$EMAIL" &lt; $EMAILMESSAGE
  </code></pre>
  
  <p>This script resulted in <code>0403-006 Execute permission denied</code></p>
  
  <p>Can anyone help me to send a simple email using some shell script...</p>
  
  <p>Thanks for you time...</p>