I needed a way to send encrypted emails from a web form. And rather than re-invent the wheel, I came across the following script:
This script is very useful, however, I prefer to use GPG over the PGP command line tool. Also, this script is based on the outdated v1.92 of the original formmail.pl script from Matt’s Script Archive.
So, I merged in the changes from v1.93, made the script work with GPG and also fixed a couple of perl warnings while I was at it. The updated script is available below.