For secure automated mail, it would be useful to have a tool that
behaved like mailx's send mode, but supported OpenPGP encryption (i.e.
letting me do
somecommand | gpgmail --key 12345678 --encrypt-to
9ABCDEF0 -s Output email@example.com). This seems fairly
straightforward to do as a wrapper around gpg and mailx.