title: Sending mail in bash script outputs literal \n instead of a new line
body: <p>I am using the following bash script to send an email</p>
  
  <pre><code> #!/bin/bash
  
   recipients="me@web.com, you@web.com"
   subject="Just a Test"
   from="test@test.com"
  
   message_txt="This is just a test.\n Goodbye!"
  
   /usr/sbin/sendmail "$recipients" &lt;&lt; EOF
   subject:$subject
   from:$from
   $message_txt
   EOF
  </code></pre>
  
  <p>But when the email arrives the $message_txt content is printed literally like this :</p>
  
  <pre><code> This is just a test.\n Goodbye!
  </code></pre>
  
  <p>Instead of interpreting the new line like this :</p>
  
  <pre><code> This is just a test.
   Goodbye!
  </code></pre>
  
  <p>I've tried using :</p>
  
  <pre><code> echo $message_txt
   echo -e $message_txt
   printf $message_txt
  </code></pre>
  
  <p>But the result is always the same. Where am I going wrong?</p>
  
  <p>What am I doing wrong?</p>