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 <m...@xample.com>
    To: $EMAIL
    Subject: Foobar
     
    Hello $NAME!
    ...
    EOF
    done

BR
-Michal
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to