Mail merge with notmuch
Michal Sojka
sojkam1 at fel.cvut.cz
Thu Jan 21 00:34:47 PST 2016
Hi Sebastian,
On Sat, Jan 16 2016, Sebastian Fischmeister wrote:
> Hi,
>
> Is there a straightforward way to for mail merge with notmuch? I need to
> send emails with only minor modifications to a number of people. If I
> could send mails from the command line, then that would be perfect.
>
> Any ideas?
You can do this easily without notmuch. You need a locally configured
MTA such as sendmail or exim (which provides sendmail alias) and then
run something like:
cat people | while read EMAIL NAME; do
sendmail -t <<EOF
From: Me <me at xample.com>
To: $EMAIL
Subject: Foobar
Hello $NAME!
...
EOF
done
BR
-Michal
More information about the notmuch
mailing list