Send encrypted mail using GPG by command-line?

Posted by Mohammad AL-Rawabdeh on Server Fault See other posts from Server Fault or by Mohammad AL-Rawabdeh
Published on 2011-03-04T21:34:50Z Indexed on 2011/03/04 23:26 UTC
Read the original article Hit count: 328

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)?

© Server Fault or respective owner

Related posts about Windows

Related posts about email