there is a good article on www.15seconds.com about PGP encrypted emails in 
ASP. It'll work much the same way in CF so it may be worth reading even if 
you've never used ASP.

Basically...
- create a message stored in a variable
- create a new file, write variable to file, save file
- execute PGP getting it to create an encrypted file
- read encrypted file into variable
- send encrypted text as message body (subject and everything else stays 
the same)

some tips:
- When creating your new file, make sure it's not in a publicly accessible 
directory and use a random filename (I use a random 32 digit number)
- Always use the -a command line switch in PGP to create an ASCII file 
(needs to be ASCII to safely send via email)
- Use the -w switch or whichever one gets PGP to remove the unencrypted 
file by overwriting it a bunch of times and then deleting it (you may also 
want to remove the encrypted version)

Just thought of one problem - seeing as CF is running as Local System 
(well, I'm guessing it is), how does one create a keyring for this user and 
create signing keys and import public keys? Maybe someone else can answer 
this - I've only done this with ASP.


Mark



At 20:07 01/11/2001, Mark Balderson wrote:
>Can anyone point me in the right direction for info on how to send encrypted
>email using CFMail and PGP?
>
>TIA,
>Mark Balderson
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to