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

link|improve this question

feedback

3 Answers

up vote 2 down vote accepted

Many clients support an extension for PGP. You could use Enigmail with Thunderbird for instance.

link|improve this answer
feedback

As an absolute last resort, you could install cygwin and then install mutt. You can do it all via a shell script (shell/bash also comes with cygwin).

See this thread for details: http://forums.gentoo.org/viewtopic-t-529419-start-0.html

** Note ** There is probably a much better (more Windows-native) way of doing this on your system since you aren't running *nix. But if no other alternatives come up, this approach should work.

link|improve this answer
feedback

If you can run Perl and PGP/GNUPG from the command line, then modifying part of this PGP Form Mail script may be of interest.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.