mkirank has asked for the wisdom of the Perl Monks concerning the following question:

How do i send a mail (pgp encrypted) with a msword as attachments ,i know of Crypt::OpenPGP are there any examples

Replies are listed 'Best First'.
Re: PGP mail with attachment
by Ryszard (Priest) on Nov 08, 2002 at 09:00 UTC
    So, what cant you do? Encrypt the file? Crypt::OpenPGP
    my $ciphertext = $pgp->encrypt( Filename => $file, Recipients => $key_id, Armour => 1, );

    or send an email attachment Mail::Sender

    use Mail::Sender; $sender = new Mail::Sender {smtp => 'mail.yourdomain.com', from => 'your@address.com'}; $sender->MailFile({to => 'some@address.com', subject => 'Here is the file', msg => "I'm sending you the list you wanted.", file => 'filename.txt'});

    I got this information in about 5 mins from doing a search on CPAN.

      I was able to do this with gpgrelay