How do I encrypt outgoing system emails via GPG on ubuntu 14.04?
I’m running a simple HTML website on Ubuntu 14.04 managed by Serverpilot (NGINX).
The form on my (forced SSL) website uses a simple PHP mailer to send visitor messages to my external email account.
Is there a way to encrypt all form entries via GPG (or PGP) before sending it to my external email account?
P.S.: I don’t mind if your method makes all system mails encrypted by default.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.