title: Unable to send mail when trying to get mail recipient from a file outside the script in the same dir
body: <p>I use the code below and it's working fine.</p>
  
  <pre><code>dl=xyz@somebody.com
  
  mail -t $dl &lt;&lt; EOM
    Subject: Report Status $(date)
    Content-Type: text/html
    mail text
  EOM
  </code></pre>
  
  <p>However, when I try to get the mail id from file dl.txt, no mail is sent.</p>
  
  <pre><code>dl='/script/user/dl.txt'
  
  mail -t $(echo cat $dl) &lt;&lt; EOM
    subject: Report Status $(date)
    content-Type: text/html
    mail text
  EOM
  </code></pre>
  
  <p>Note: text file contains mail ids.</p>