[neomutt-users] Send mail from command line (no ncurses interface, exit immediately)

Valentin Iovene tgy at inria.fr
Tue Aug 21 10:42:03 CEST 2018


I would like to send an email with neomutt from a bash script.

My current bash script looks like this:

#!/usr/bin/env bash
neomutt \
  -B \
  -e "set from = tgy at work.com" \
  -d 5 \
  -s "print on `date`" \
  -a $@ \
  -- network-printer at work.com

When executing this script, the neomutt ncurses interface opens,
which then runs my $EDITOR.

How can I make neomutt just shoot the email silently (without opening
any interface)?


Valentin Iovene

More information about the neomutt-users mailing list