Login   Register  
PHP Classes

File: pgp_enc_demo.php3

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of James Moore  >  pgp_enc.Class  >  pgp_enc_demo.php3  >  Download  
File: pgp_enc_demo.php3
Role: ???
Content type: text/plain
Description: A demo of the file in action
Class: pgp_enc.Class
Author: By
Last change:
Date: 14 years ago
Size: 931 bytes


Class file image Download
** Title.........: PGP Encrypted Mail Class
** Version.......: 1.0
** Author........: James Moore <james@phpuk.org>
** Filename......: pgp_enc_demo.php3
** Last changed..: 17/04/2000
** Notes.........: Based upon html_mime_mail.class
**                 by Richard Heyes <richard.heyes@heyes-computing.net>
**                 and Tobias Ratschiller <tobias@dnet.it>
**                 and Sascha Schumann <sascha@schumann.cx>.


$mail = new pgp_encrypted_mail("X-Mailer: PHP\PGP Mailer\n");
$text = "This is a test";
$mail->add_key("Your ID");
$mail->body = $text;
$mail->sign("Your ID","Password");
$mail->send('Your Name', 'You@yourdomain.com', 'PGP Encryption Test', 'webmaster@yourdomain.com', 'PGP Encryption Class Test');
echo done;