title: sending email with ssmtp and bash script
body: <p>I m new to bash scripting. </p>
  
  <p>I have this command line to send an email with sstmp from the terminal:</p>
  
  <pre><code>{
      echo To: user@gmail.com
      echo From: user@gmail.com
      echo Subject: "[Alert]"
  echo 'McDonalds now offers vegan burgers and vegan ice cream!'
  } | ssmtp user@gmail.com
  </code></pre>
  
  <p>I would like to execute this in a bash script.
  Can someone tell me how this is best done?</p>
  
  <p>Thanks!</p>