title: How can I compose and send email in Thunderbird from commandline?
body: <p>I use this command to send a logfile with Thunderbird:</p>
  <pre><code>thunderbird -compose &quot;subject='test',to='test@mail.test',body=$output,attachment='/home/test/scan.log'&quot;
  </code></pre>
  <p>That launches and shows Thunderbird's prefilled edit-message-window and I have to press the Send button manually.</p>
  <p>How can I send email automatically?</p>
  <p><a href="https://i.stack.imgur.com/izfb5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/izfb5.png" alt="screenshot thunderbird" /></a></p>