title: How do I use CC and BCC in UNIX mail?
body: <p>I have the function below which uses the mail.
  How do I add cc or bcc in it?
  Doing this do not work: cat &lt;&lt; EOF | mail ${CONTACT_EMAIL} -b email@email.com.br...</p>
  
  <pre><code>function SendMail () {
          # Getting e-mails body text
          TEXT=$(cat ${LOG_DIR}/${PROCESS_ID}.log)
  
  cat &lt;&lt; EOF | mail ${CONTACT_EMAIL}
  From: ${MAIL_FROM}
  Subject: X
  To: X}
  Cc: Leandro.Takeda@teste.com
  MIME-Version: 1.0
  Content-Type: multipart/mixed; boundary="-q1w2e3r4t5"
  ---q1w2e3r4t5
  Content-Type: text/html
  Content-Disposition: inline
  
  X
  
  EOF
  
  }
  </code></pre>