Send encrypted mail using GPG by command-line?
- by Mohammad AL-Rawabdeh
A few days ago I asked about how I can secure email and many people advised me to use PGP tool, and I read about it and I use it.
Now I want to write a batch file to send encrypted email with attachments. I know how I can generate key, exchange key with other side and encrypt email with PGP mail but until now I don't know how I can integrate PGP tool with my mail and how I can send the encrypted email.
In other words, how can I send encrypted email that encrypts with PGP tool to other side by command line (batch file)?