"; $subject = "$subject"; //////////////////// // Clean the var we are passing to the command line //////////////////// $body = escapeshellcmd($body); //////////////////// // Encrypt it! //////////////////// $commandline = "echo $body | /usr/bin/gpg --homedir /home/username/.gnupg -a -r 'Full Username' -e -"; if ($debug==1) { system($commandline); } else { exec($commandline,$encrypted); } //////////////////// // Make the result array a string //////////////////// if (is_array($encrypted)) { $encrypted = implode($encrypted,"\n"); } //////////////////// // Either output the debug info or mail it //////////////////// if ($debug==1) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; } else { if ($encrypted) { mail($to,$subject,$encrypted,$from); } else { $notenc = 1; } } } else { $notall = 1; } } ?> GPGsend

GPGSend

Please fill out the form completely

The encryption failed.

Thank you!

Your information has been sent.

Name:    
Email:   
Subject: 
Message: