I've modified Benjamin Trott's STAMP script to send HTML form submissions as FDF files, using the PDF::FDF::Simple module. (This after failed attempts to install Adobe's FDF Toolkit.) But I want to send the FDF data as an encrypted attachment.
This MIME::Lite object works fine for sending the unencrypted message:
my $body = $fdf->_fdf_header; foreach (sort keys %{$fdf->content}) { $body .= sprintf ($fdf->_fdf_field_formatstr, $_, $fdf->_quote($fdf->content->{$_})); } $body .=$fdf->_fdf_footer; my $msg = MIME::Lite->new( From =>$cfg->Email, To =>$cfg->To, Subject =>$cfg->Subject, Filename => 'test.fdf', Type =>'application/vnd.fdf', Encoding => 'binary', Data => $body; Disposition => 'attachment' );
Then I tried this:
my $msg = MIME::Lite->new( From =>$cfg->Email, To =>$cfg->To, Subject =>$cfg->Subject, Filename => 'test.pgp', Type =>'application/pgp-encrypted', Encoding => 'binary', Data => $body_encrypted, Disposition => 'attachment' );
This works, except in MS Outlook 2000 I have to save the attachment and type in the ".fdf" suffix. I was hoping to automate the process, so that I could just click on the attachment, enter my PGP password, and open the FDF file automatically. Any suggestions would be great.
In reply to Can MIME::Lite send PGP-encrypted attachments? by Carstonio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |